radar3.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="ECharts">
  8. <meta name="author" content="kener.linfeng@gmail.com">
  9. <title>ECharts · Example</title>
  10. <link rel="shortcut icon" href="../asset/ico/favicon.png">
  11. <link href="../asset/css/font-awesome.min.css" rel="stylesheet">
  12. <link href="../asset/css/bootstrap.css" rel="stylesheet">
  13. <link href="../asset/css/carousel.css" rel="stylesheet">
  14. <link href="../asset/css/echartsHome.css" rel="stylesheet">
  15. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. <script src="./www/js/echarts.js"></script>
  21. <script src="../asset/js/codemirror.js"></script>
  22. <script src="../asset/js/javascript.js"></script>
  23. <link href="../asset/css/codemirror.css" rel="stylesheet">
  24. <link href="../asset/css/monokai.css" rel="stylesheet">
  25. </head>
  26. <body>
  27. <!-- Fixed navbar -->
  28. <div class="navbar navbar-default navbar-fixed-top" role="navigation" id="head"></div>
  29. <div class="container-fluid">
  30. <div class="row-fluid example">
  31. <div id="sidebar-code" class="col-md-4">
  32. <div class="well sidebar-nav">
  33. <div class="nav-header"><a href="#" onclick="autoResize()" class="glyphicon glyphicon-resize-full" id ="icon-resize" ></a>option</div>
  34. <textarea id="code" name="code">
  35. option = {
  36. title : {
  37. text: '多雷达图',
  38. subtext: '纯属虚构'
  39. },
  40. tooltip : {
  41. trigger: 'axis'
  42. },
  43. legend: {
  44. x : 'center',
  45. data:['某软件','某主食手机','某水果手机','降水量','蒸发量']
  46. },
  47. toolbox: {
  48. show : true,
  49. feature : {
  50. mark : {show: true},
  51. dataView : {show: true, readOnly: false},
  52. restore : {show: true},
  53. saveAsImage : {show: true}
  54. }
  55. },
  56. calculable : true,
  57. polar : [
  58. {
  59. indicator : [
  60. {text : '品牌', max : 100},
  61. {text : '内容', max : 100},
  62. {text : '可用性', max : 100},
  63. {text : '功能', max : 100}
  64. ],
  65. center : ['25%',200],
  66. radius : 80
  67. },
  68. {
  69. indicator : [
  70. {text : '外观', max : 100},
  71. {text : '拍照', max : 100},
  72. {text : '系统', max : 100},
  73. {text : '性能', max : 100},
  74. {text : '屏幕', max : 100}
  75. ],
  76. radius : 80
  77. },
  78. {
  79. indicator : (function (){
  80. var res = [];
  81. for (var i = 1; i <= 12; i++) {
  82. res.push({text:i+'月',max:100});
  83. }
  84. return res;
  85. })(),
  86. center : ['75%', 200],
  87. radius : 80
  88. }
  89. ],
  90. series : [
  91. {
  92. type: 'radar',
  93. tooltip : {
  94. trigger: 'item'
  95. },
  96. itemStyle: {normal: {areaStyle: {type: 'default'}}},
  97. data : [
  98. {
  99. value : [60,73,85,40],
  100. name : '某软件'
  101. }
  102. ]
  103. },
  104. {
  105. type: 'radar',
  106. polarIndex : 1,
  107. data : [
  108. {
  109. value : [85, 90, 90, 95, 95],
  110. name : '某主食手机'
  111. },
  112. {
  113. value : [95, 80, 95, 90, 93],
  114. name : '某水果手机'
  115. }
  116. ]
  117. },
  118. {
  119. type: 'radar',
  120. polarIndex : 2,
  121. itemStyle: {normal: {areaStyle: {type: 'default'}}},
  122. data : [
  123. {
  124. name : '降水量',
  125. value : [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 75.6, 82.2, 48.7, 18.8, 6.0, 2.3],
  126. },
  127. {
  128. name:'蒸发量',
  129. value:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 35.6, 62.2, 32.6, 20.0, 6.4, 3.3]
  130. }
  131. ]
  132. }
  133. ]
  134. };
  135. </textarea>
  136. </div><!--/.well -->
  137. </div><!--/span-->
  138. <div id="graphic" class="col-md-8">
  139. <div id="main" class="main"></div>
  140. <div>
  141. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  142. <span class="text-primary">切换主题</span>
  143. <select id="theme-select"></select>
  144. <span id='wrong-message' style="color:red"></span>
  145. </div>
  146. </div><!--/span-->
  147. </div><!--/row-->
  148. </div><!--/.fluid-container-->
  149. <footer id="footer"></footer>
  150. <!-- Le javascript
  151. ================================================== -->
  152. <!-- Placed at the end of the document so the pages load faster -->
  153. <script src="../asset/js/jquery.min.js"></script>
  154. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  155. <script src="../asset/js/bootstrap.min.js"></script>
  156. <script src="../asset/js/echartsExample.js"></script>
  157. </body>
  158. </html>