8cbbf87817793de510d86b2eeab20e7db033a1dc.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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. option = {
  36. title : {
  37. text: 'Event River',
  38. subtext: '纯属虚构'
  39. },
  40. tooltip : {
  41. trigger: 'item',
  42. enterable: true
  43. },
  44. legend: {
  45. data:['财经事件', '政治事件']
  46. },
  47. toolbox: {
  48. show : true,
  49. feature : {
  50. mark : {show: true},
  51. restore : {show: true},
  52. saveAsImage : {show: true}
  53. }
  54. },
  55. xAxis : [
  56. {
  57. type : 'time',
  58. boundaryGap: [0.05,0.1]
  59. }
  60. ],
  61. series : [
  62. {
  63. "name": "财经事件",
  64. "type": "eventRiver",
  65. "weight": 123,
  66. "data": [
  67. {
  68. "name": "阿里巴巴上市",
  69. "weight": 123,
  70. "evolution": [
  71. {
  72. "time": "2014-05-01",
  73. "value": 14,
  74. "detail": {
  75. "link": "http://www.baidu.com",
  76. "text": "百度指数",
  77. "img": '../asset/ico/favicon.png'
  78. }
  79. },
  80. {
  81. "time": "2014-05-02",
  82. "value": 34,
  83. "detail": {
  84. "link": "http://www.baidu.com",
  85. "text": "百度指数",
  86. "img": '../asset/ico/favicon.png'
  87. }
  88. },
  89. {
  90. "time": "2014-05-03",
  91. "value": 60,
  92. "detail": {
  93. "link": "http://www.baidu.com",
  94. "text": "百度指数",
  95. "img": '../asset/ico/favicon.png'
  96. }
  97. },
  98. {
  99. "time": "2014-05-04",
  100. "value": 40,
  101. "detail": {
  102. "link": "http://www.baidu.com",
  103. "text": "百度指数",
  104. "img": '../asset/ico/favicon.png'
  105. }
  106. },
  107. {
  108. "time": "2014-05-05",
  109. "value": 10,
  110. "detail": {
  111. "link": "http://www.baidu.com",
  112. "text": "百度指数",
  113. "img": '../asset/ico/favicon.png'
  114. }
  115. }
  116. ]
  117. },
  118. {
  119. "name": "阿里巴巴上市2",
  120. "weight": 123,
  121. "evolution": [
  122. {
  123. "time": "2014-05-02",
  124. "value": 10,
  125. "detail": {
  126. "link": "www.baidu.com",
  127. "text": "百度指数",
  128. "img": '../asset/ico/favicon.png'
  129. }
  130. },
  131. {
  132. "time": "2014-05-03",
  133. "value": 34,
  134. "detail": {
  135. "link": "http://www.baidu.com",
  136. "text": "百度指数",
  137. "img": '../asset/ico/favicon.png'
  138. }
  139. },
  140. {
  141. "time": "2014-05-04",
  142. "value": 40,
  143. "detail": {
  144. "link": "http://www.baidu.com",
  145. "text": "百度指数",
  146. "img": '../asset/ico/favicon.png'
  147. }
  148. },
  149. {
  150. "time": "2014-05-05",
  151. "value": 10,
  152. "detail": {
  153. "link": "http://www.baidu.com",
  154. "text": "百度指数",
  155. "img": '../asset/ico/favicon.png'
  156. }
  157. }
  158. ]
  159. },
  160. {
  161. "name": "三星业绩暴跌",
  162. "weight": 123,
  163. "evolution": [
  164. {
  165. "time": "2014-05-03",
  166. "value": 24,
  167. "detail": {
  168. "link": "www.baidu.com",
  169. "text": "百度指数",
  170. "img": '../asset/ico/favicon.png'
  171. }
  172. },
  173. {
  174. "time": "2014-05-04",
  175. "value": 34,
  176. "detail": {
  177. "link": "http://www.baidu.com",
  178. "text": "百度指数",
  179. "img": '../asset/ico/favicon.png'
  180. }
  181. },
  182. {
  183. "time": "2014-05-05",
  184. "value": 50,
  185. "detail": {
  186. "link": "http://www.baidu.com",
  187. "text": "百度指数",
  188. "img": '../asset/ico/favicon.png'
  189. }
  190. },
  191. {
  192. "time": "2014-05-06",
  193. "value": 30,
  194. "detail": {
  195. "link": "http://www.baidu.com",
  196. "text": "百度指数",
  197. "img": '../asset/ico/favicon.png'
  198. }
  199. },
  200. {
  201. "time": "2014-05-07",
  202. "value": 20,
  203. "detail": {
  204. "link": "http://www.baidu.com",
  205. "text": "百度指数",
  206. "img": '../asset/ico/favicon.png'
  207. }
  208. }
  209. ]
  210. }
  211. ]
  212. },
  213. {
  214. "name": "政治事件",
  215. "type": "eventRiver",
  216. "weight": 123,
  217. "data": [
  218. {
  219. "name": "Apec峰会",
  220. "weight": 123,
  221. "evolution": [
  222. {
  223. "time": "2014-05-06",
  224. "value": 14,
  225. "detail": {
  226. "link": "www.baidu.com",
  227. "text": "百度指数",
  228. "img": '../asset/ico/favicon.png'
  229. }
  230. },
  231. {
  232. "time": "2014-05-07",
  233. "value": 34,
  234. "detail": {
  235. "link": "http://www.baidu.com",
  236. "text": "百度指数",
  237. "img": '../asset/ico/favicon.png'
  238. }
  239. },
  240. {
  241. "time": "2014-05-08",
  242. "value": 60,
  243. "detail": {
  244. "link": "http://www.baidu.com",
  245. "text": "百度指数",
  246. "img": '../asset/ico/favicon.png'
  247. }
  248. },
  249. {
  250. "time": "2014-05-09",
  251. "value": 40,
  252. "detail": {
  253. "link": "http://www.baidu.com",
  254. "text": "百度指数",
  255. "img": '../asset/ico/favicon.png'
  256. }
  257. },
  258. {
  259. "time": "2014-05-10",
  260. "value": 20,
  261. "detail": {
  262. "link": "http://www.baidu.com",
  263. "text": "百度指数",
  264. "img": '../asset/ico/favicon.png'
  265. }
  266. }
  267. ]
  268. },
  269. {
  270. "name": "运城官帮透视",
  271. "weight": 123,
  272. "evolution": [
  273. {
  274. "time": "2014-05-08",
  275. "value": 4,
  276. "detail": {
  277. "link": "www.baidu.com",
  278. "text": "百度指数",
  279. "img": '../asset/ico/favicon.png'
  280. }
  281. },
  282. {
  283. "time": "2014-05-09",
  284. "value": 14,
  285. "detail": {
  286. "link": "http://www.baidu.com",
  287. "text": "百度指数",
  288. "img": '../asset/ico/favicon.png'
  289. }
  290. },
  291. {
  292. "time": "2014-05-10",
  293. "value": 30,
  294. "detail": {
  295. "link": "http://www.baidu.com",
  296. "text": "百度指数",
  297. "img": '../asset/ico/favicon.png'
  298. }
  299. },
  300. {
  301. "time": "2014-05-11",
  302. "value": 20,
  303. "detail": {
  304. "link": "http://www.baidu.com",
  305. "text": "百度指数",
  306. "img": '../asset/ico/favicon.png'
  307. }
  308. },
  309. {
  310. "time": "2014-05-12",
  311. "value": 10,
  312. "detail": {
  313. "link": "http://www.baidu.com",
  314. "text": "百度指数",
  315. "img": '../asset/ico/favicon.png'
  316. }
  317. }
  318. ]
  319. },
  320. {
  321. "name": "底层公务员收入超过副部长",
  322. "weight": 123,
  323. "evolution": [
  324. {
  325. "time": "2014-05-11",
  326. "value": 4,
  327. "detail": {
  328. "link": "www.baidu.com",
  329. "text": "百度指数",
  330. "img": '../asset/ico/favicon.png'
  331. }
  332. },
  333. {
  334. "time": "2014-05-12",
  335. "value": 24,
  336. "detail": {
  337. "link": "http://www.baidu.com",
  338. "text": "百度指数",
  339. "img": '../asset/ico/favicon.png'
  340. }
  341. },
  342. {
  343. "time": "2014-05-13",
  344. "value": 40,
  345. "detail": {
  346. "link": "http://www.baidu.com",
  347. "text": "百度指数",
  348. "img": '../asset/ico/favicon.png'
  349. }
  350. },
  351. {
  352. "time": "2014-05-14",
  353. "value": 20,
  354. "detail": {
  355. "link": "http://www.baidu.com",
  356. "text": "百度指数",
  357. "img": '../asset/ico/favicon.png'
  358. }
  359. },
  360. {
  361. "time": "2014-05-15",
  362. "value": 15,
  363. "detail": {
  364. "link": "http://www.baidu.com",
  365. "text": "百度指数",
  366. "img": '../asset/ico/favicon.png'
  367. }
  368. },
  369. {
  370. "time": "2014-05-16",
  371. "value": 10,
  372. "detail": {
  373. "link": "http://www.baidu.com",
  374. "text": "百度指数",
  375. "img": '../asset/ico/favicon.png'
  376. }
  377. }
  378. ]
  379. }
  380. ]
  381. }
  382. ]
  383. };
  384. </textarea>
  385. </div><!--/.well -->
  386. </div><!--/span-->
  387. <div id="graphic" class="col-md-8">
  388. <div id="main" class="main"></div>
  389. <div>
  390. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  391. <span class="text-primary">切换主题</span>
  392. <select id="theme-select"></select>
  393. <span id='wrong-message' style="color:red"></span>
  394. </div>
  395. </div><!--/span-->
  396. </div><!--/row-->
  397. </div><!--/.fluid-container-->
  398. <footer id="footer"></footer>
  399. <!-- Le javascript
  400. ================================================== -->
  401. <!-- Placed at the end of the document so the pages load faster -->
  402. <script src="../asset/js/jquery.min.js"></script>
  403. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  404. <script src="../asset/js/bootstrap.min.js"></script>
  405. <script src="../asset/js/echartsExample.js"></script>
  406. </body>
  407. </html>