ui_jvectormap.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <div class="wrapper-md" ng-controller="JVectorMapDemoCtrl">
  2. <div class="panel b-a">
  3. <div class="panel-heading b-b b-light">World Map</div>
  4. <div class="panel-body">
  5. <div class="h3 m-b font-thin">World Map with information</div>
  6. <p class="m-b-lg text-muted">This map is based on data available at <a href="http://www.naturalearthdata.com/downloads/110m-cultural-vectors/110m-admin-0-countries/">http://www.naturalearthdata.com</a>. Data is in <a href="http://www.naturalearthdata.com/about/terms-of-use/">public domain</a>.</p>
  7. <div class="row">
  8. <div class="col-sm-8">
  9. <div style="height:240px;" ui-jq="vectorMap" ui-options="{
  10. map: 'world_mill_en',
  11. markers: {{world_markers}},
  12. normalizeFunction: 'polynomial',
  13. backgroundColor: '#fff',
  14. regionStyle: {
  15. initial: {
  16. fill: '{{app.color.light}}'
  17. },
  18. hover: {
  19. fill: '{{app.color.primary}}'
  20. },
  21. },
  22. markerStyle: {
  23. initial: {
  24. fill: '{{app.color.info}}',
  25. stroke: '#fff'
  26. }
  27. }
  28. }" >
  29. </div>
  30. <div class="m-t-xl m-b clearfix">
  31. <i class="i i-local i-2x text-info pull-left m-r m-l m-t-xs"></i>
  32. <div class="clear text-sm">
  33. Countries distinguish between metropolitan (homeland) and independent and semi-independent portions of sovereign states.
  34. </div>
  35. </div>
  36. </div>
  37. <div class="col-sm-4">
  38. <div class="h4 m-b font-thin">Statistics</div>
  39. <p class="m-b-xs">Population growth</p>
  40. <div class="progress progress-xs">
  41. <div class="progress-bar progress-bar-info" data-toggle="tooltip" data-original-title="80%" style="width: 80%"></div>
  42. </div>
  43. <p class="m-b-xs">Desertification</p>
  44. <div class="progress progress-xs">
  45. <div class="progress-bar progress-bar-success" data-toggle="tooltip" data-original-title="60%" style="width: 60%"></div>
  46. </div>
  47. <p class="m-b-xs">Natural Disasters</p>
  48. <div class="progress progress-xs">
  49. <div class="progress-bar progress-bar-warning" data-toggle="tooltip" data-original-title="70%" style="width: 70%"></div>
  50. </div>
  51. <p class="m-b-xs">World Forest</p>
  52. <div class="progress progress-xs">
  53. <div class="progress-bar progress-bar-primary lter" data-toggle="tooltip" data-original-title="50%" style="width: 50%"></div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="panel b-a">
  60. <div class="panel-heading b-b b-light">USA Map</div>
  61. <div class="panel-body">
  62. <div class="h3 m-b font-thin">Map with selection</div>
  63. <p class="m-b-lg text-muted">This map is based on data available at <a href="http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/">http://www.naturalearthdata.com</a>. Data is in <a href="http://www.naturalearthdata.com/about/terms-of-use/">public domain</a>.</p>
  64. <div class="row m-b-xl">
  65. <div class="col-sm-8">
  66. <div style="height:240px;" ui-jq="vectorMap" ui-options="{
  67. map: 'us_aea_en',
  68. markers: {{usa_markers}},
  69. backgroundColor: '#fff',
  70. regionsSelectable: true,
  71. markersSelectable: true,
  72. markerStyle: {
  73. initial: {
  74. fill: '{{app.color.warning}}'
  75. },
  76. selected: {
  77. fill: '#ffffff'
  78. }
  79. },
  80. regionStyle: {
  81. initial: {
  82. fill: '{{app.color.info}}'
  83. },
  84. selected: {
  85. fill: '{{app.color.success}}'
  86. }
  87. },
  88. series: {
  89. markers: [{
  90. attribute: 'r',
  91. scale: [5, 15],
  92. values: [
  93. 187.70,
  94. 255.16,
  95. 310.69,
  96. 605.17,
  97. 248.31,
  98. 107.35,
  99. 217.22
  100. ]
  101. }]
  102. }
  103. }" >
  104. </div>
  105. </div>
  106. <div class="col-sm-4">
  107. <div class="h4 m-b font-thin">Statistics</div>
  108. <p>Internal administrative boundaries</p>
  109. <div>
  110. <div class="inline text-center">
  111. <div ui-jq="easyPieChart" ui-options="{
  112. percent: 60,
  113. lineWidth: 4,
  114. trackColor: '{{app.color.light}}',
  115. barColor: '{{app.color.info}}',
  116. scaleColor: '#fff',
  117. size: 100,
  118. lineCap: 'butt',
  119. animate: 1000
  120. }">
  121. <div>
  122. <span class="step">60</span>%
  123. </div>
  124. </div>
  125. <p class="text-info font-bold">data</p>
  126. </div>
  127. <div class="inline text-center">
  128. <div ui-jq="easyPieChart" ui-options="{
  129. percent: 30,
  130. lineWidth: 4,
  131. trackColor: '{{app.color.light}}',
  132. barColor: '{{app.color.warning}}',
  133. scaleColor: '#fff',
  134. size: 100,
  135. lineCap: 'butt',
  136. animate: 1000
  137. }">
  138. <div>
  139. <span class="step">30</span>%
  140. </div>
  141. </div>
  142. <p class="text-warning font-bold">info</p>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>