94c9c9f44d16d2e3abcb537c1ca23d7eb28fbba3.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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="javascript:;" onclick="autoResize()" class="glyphicon glyphicon-resize-full" id ="icon-resize" ></a>option</div>
  34. <textarea id="code" name="code">
  35. var idx = 1;
  36. option = {
  37. timeline : {
  38. data : [
  39. '2013-01-01', '2013-02-01', '2013-03-01', '2013-04-01', '2013-05-01',
  40. { name:'2013-06-01', symbol:'emptyStar6', symbolSize:8 },
  41. '2013-07-01', '2013-08-01', '2013-09-01', '2013-10-01', '2013-11-01',
  42. { name:'2013-12-01', symbol:'star6', symbolSize:8 }
  43. ],
  44. label : {
  45. formatter : function(s) {
  46. return s.slice(0, 7);
  47. }
  48. }
  49. },
  50. options : [
  51. {
  52. title : {
  53. text: '浏览器占比变化',
  54. subtext: '纯属虚构'
  55. },
  56. tooltip : {
  57. trigger: 'item',
  58. formatter: "{a} <br/>{b} : {c} ({d}%)"
  59. },
  60. legend: {
  61. data:['Chrome','Firefox','Safari','IE9+','IE8-']
  62. },
  63. toolbox: {
  64. show : true,
  65. feature : {
  66. mark : {show: true},
  67. dataView : {show: true, readOnly: false},
  68. magicType : {
  69. show: true,
  70. type: ['pie', 'funnel'],
  71. option: {
  72. funnel: {
  73. x: '25%',
  74. width: '50%',
  75. funnelAlign: 'left',
  76. max: 1700
  77. }
  78. }
  79. },
  80. restore : {show: true},
  81. saveAsImage : {show: true}
  82. }
  83. },
  84. series : [
  85. {
  86. name:'浏览器(数据纯属虚构)',
  87. type:'pie',
  88. center: ['50%', '45%'],
  89. radius: '50%',
  90. data:[
  91. {value: idx * 128 + 80, name:'Chrome'},
  92. {value: idx * 64 + 160, name:'Firefox'},
  93. {value: idx * 32 + 320, name:'Safari'},
  94. {value: idx * 16 + 640, name:'IE9+'},
  95. {value: idx++ * 8 + 1280, name:'IE8-'}
  96. ]
  97. }
  98. ]
  99. },
  100. {
  101. series : [
  102. {
  103. name:'浏览器(数据纯属虚构)',
  104. type:'pie',
  105. data:[
  106. {value: idx * 128 + 80, name:'Chrome'},
  107. {value: idx * 64 + 160, name:'Firefox'},
  108. {value: idx * 32 + 320, name:'Safari'},
  109. {value: idx * 16 + 640, name:'IE9+'},
  110. {value: idx++ * 8 + 1280, name:'IE8-'}
  111. ]
  112. }
  113. ]
  114. },
  115. {
  116. series : [
  117. {
  118. name:'浏览器(数据纯属虚构)',
  119. type:'pie',
  120. data:[
  121. {value: idx * 128 + 80, name:'Chrome'},
  122. {value: idx * 64 + 160, name:'Firefox'},
  123. {value: idx * 32 + 320, name:'Safari'},
  124. {value: idx * 16 + 640, name:'IE9+'},
  125. {value: idx++ * 8 + 1280, name:'IE8-'}
  126. ]
  127. }
  128. ]
  129. },
  130. {
  131. series : [
  132. {
  133. name:'浏览器(数据纯属虚构)',
  134. type:'pie',
  135. data:[
  136. {value: idx * 128 + 80, name:'Chrome'},
  137. {value: idx * 64 + 160, name:'Firefox'},
  138. {value: idx * 32 + 320, name:'Safari'},
  139. {value: idx * 16 + 640, name:'IE9+'},
  140. {value: idx++ * 8 + 1280, name:'IE8-'}
  141. ]
  142. }
  143. ]
  144. },
  145. {
  146. series : [
  147. {
  148. name:'浏览器(数据纯属虚构)',
  149. type:'pie',
  150. data:[
  151. {value: idx * 128 + 80, name:'Chrome'},
  152. {value: idx * 64 + 160, name:'Firefox'},
  153. {value: idx * 32 + 320, name:'Safari'},
  154. {value: idx * 16 + 640, name:'IE9+'},
  155. {value: idx++ * 8 + 1280, name:'IE8-'}
  156. ]
  157. }
  158. ]
  159. },
  160. {
  161. series : [
  162. {
  163. name:'浏览器(数据纯属虚构)',
  164. type:'pie',
  165. data:[
  166. {value: idx * 128 + 80, name:'Chrome'},
  167. {value: idx * 64 + 160, name:'Firefox'},
  168. {value: idx * 32 + 320, name:'Safari'},
  169. {value: idx * 16 + 640, name:'IE9+'},
  170. {value: idx++ * 8 + 1280, name:'IE8-'}
  171. ]
  172. }
  173. ]
  174. },
  175. {
  176. series : [
  177. {
  178. name:'浏览器(数据纯属虚构)',
  179. type:'pie',
  180. data:[
  181. {value: idx * 128 + 80, name:'Chrome'},
  182. {value: idx * 64 + 160, name:'Firefox'},
  183. {value: idx * 32 + 320, name:'Safari'},
  184. {value: idx * 16 + 640, name:'IE9+'},
  185. {value: idx++ * 8 + 1280, name:'IE8-'}
  186. ]
  187. }
  188. ]
  189. },
  190. {
  191. series : [
  192. {
  193. name:'浏览器(数据纯属虚构)',
  194. type:'pie',
  195. data:[
  196. {value: idx * 128 + 80, name:'Chrome'},
  197. {value: idx * 64 + 160, name:'Firefox'},
  198. {value: idx * 32 + 320, name:'Safari'},
  199. {value: idx * 16 + 640, name:'IE9+'},
  200. {value: idx++ * 8 + 1280, name:'IE8-'}
  201. ]
  202. }
  203. ]
  204. },
  205. {
  206. series : [
  207. {
  208. name:'浏览器(数据纯属虚构)',
  209. type:'pie',
  210. data:[
  211. {value: idx * 128 + 80, name:'Chrome'},
  212. {value: idx * 64 + 160, name:'Firefox'},
  213. {value: idx * 32 + 320, name:'Safari'},
  214. {value: idx * 16 + 640, name:'IE9+'},
  215. {value: idx++ * 8 + 1280, name:'IE8-'}
  216. ]
  217. }
  218. ]
  219. },
  220. {
  221. series : [
  222. {
  223. name:'浏览器(数据纯属虚构)',
  224. type:'pie',
  225. data:[
  226. {value: idx * 128 + 80, name:'Chrome'},
  227. {value: idx * 64 + 160, name:'Firefox'},
  228. {value: idx * 32 + 320, name:'Safari'},
  229. {value: idx * 16 + 640, name:'IE9+'},
  230. {value: idx++ * 8 + 1280, name:'IE8-'}
  231. ]
  232. }
  233. ]
  234. },
  235. {
  236. series : [
  237. {
  238. name:'浏览器(数据纯属虚构)',
  239. type:'pie',
  240. data:[
  241. {value: idx * 128 + 80, name:'Chrome'},
  242. {value: idx * 64 + 160, name:'Firefox'},
  243. {value: idx * 32 + 320, name:'Safari'},
  244. {value: idx * 16 + 640, name:'IE9+'},
  245. {value: idx++ * 8 + 1280, name:'IE8-'}
  246. ]
  247. }
  248. ]
  249. },
  250. {
  251. series : [
  252. {
  253. name:'浏览器(数据纯属虚构)',
  254. type:'pie',
  255. data:[
  256. {value: idx * 128 + 80, name:'Chrome'},
  257. {value: idx * 64 + 160, name:'Firefox'},
  258. {value: idx * 32 + 320, name:'Safari'},
  259. {value: idx * 16 + 640, name:'IE9+'},
  260. {value: idx++ * 8 + 1280, name:'IE8-'}
  261. ]
  262. }
  263. ]
  264. }
  265. ]
  266. };
  267. </textarea>
  268. </div><!--/.well -->
  269. </div><!--/span-->
  270. <div id="graphic" class="col-md-8">
  271. <div id="main" class="main"></div>
  272. <div>
  273. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  274. <span class="text-primary">切换主题</span>
  275. <select id="theme-select"></select>
  276. <span id='wrong-message' style="color:red"></span>
  277. </div>
  278. </div><!--/span-->
  279. </div><!--/row-->
  280. </div><!--/.fluid-container-->
  281. <footer id="footer"></footer>
  282. <!-- Le javascript
  283. ================================================== -->
  284. <!-- Placed at the end of the document so the pages load faster -->
  285. <script src="../asset/js/jquery.min.js"></script>
  286. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  287. <script src="../asset/js/bootstrap.min.js"></script>
  288. <script src="../asset/js/echartsExample.js"></script>
  289. </body>
  290. </html>