wormhole.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. color : (function (){
  37. var zrColor = require('zrender/tool/color');
  38. return zrColor.getStepColors('yellow', 'red', 28);
  39. })(),
  40. title : {
  41. text: '浏览器占比变化',
  42. subtext: '纯属虚构',
  43. x:'right',
  44. y:'bottom'
  45. },
  46. tooltip : {
  47. trigger: 'item',
  48. backgroundColor : 'rgba(0,0,250,0.2)'
  49. },
  50. legend: {
  51. // orient : 'vertical',
  52. //x : 'center',
  53. data: function (){
  54. var list = [];
  55. for (var i = 1; i <=28; i++) {
  56. list.push(i + 2000);
  57. }
  58. return list;
  59. }()
  60. },
  61. toolbox: {
  62. show : true,
  63. orient : 'vertical',
  64. y:'center',
  65. feature : {
  66. mark : {show: true},
  67. dataView : {show: true, readOnly: false},
  68. restore : {show: true},
  69. saveAsImage : {show: true}
  70. }
  71. },
  72. polar : [
  73. {
  74. indicator : [
  75. { text: 'IE8-', max: 400},
  76. { text: 'IE9+', max: 400},
  77. { text: 'Safari', max: 400},
  78. { text: 'Firefox', max: 400},
  79. { text: 'Chrome', max: 400}
  80. ],
  81. center : ['50%', 240],
  82. radius : 150
  83. }
  84. ],
  85. calculable : false,
  86. series : (function (){
  87. var series = [];
  88. for (var i = 1; i <= 28; i++) {
  89. series.push({
  90. name:'浏览器(数据纯属虚构)',
  91. type:'radar',
  92. symbol:'none',
  93. itemStyle: {
  94. normal: {
  95. lineStyle: {
  96. width:1
  97. }
  98. },
  99. emphasis : {
  100. areaStyle: {color:'rgba(0,250,0,0.3)'}
  101. }
  102. },
  103. data:[
  104. {
  105. value:[
  106. (40 - i) * 10,
  107. (38 - i) * 4 + 60,
  108. i * 5 + 10,
  109. i * 9,
  110. i * i /2
  111. ],
  112. name:i + 2000
  113. }
  114. ]
  115. })
  116. }
  117. return series;
  118. })()
  119. };
  120. </textarea>
  121. </div><!--/.well -->
  122. </div><!--/span-->
  123. <div id="graphic" class="col-md-8">
  124. <div id="main" class="main"></div>
  125. <div>
  126. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  127. <span class="text-primary">切换主题</span>
  128. <select id="theme-select"></select>
  129. <span id='wrong-message' style="color:red"></span>
  130. </div>
  131. </div><!--/span-->
  132. </div><!--/row-->
  133. </div><!--/.fluid-container-->
  134. <footer id="footer"></footer>
  135. <!-- Le javascript
  136. ================================================== -->
  137. <!-- Placed at the end of the document so the pages load faster -->
  138. <script src="../asset/js/jquery.min.js"></script>
  139. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  140. <script src="../asset/js/bootstrap.min.js"></script>
  141. <script src="../asset/js/echartsExample.js"></script>
  142. </body>
  143. </html>