9742d32a05594a2d136cdeea39f359d22a9f132c.svn-base 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. <style type="text/css">
  26. .CodeMirror {
  27. height: 550px;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <!-- Fixed navbar -->
  33. <div class="navbar navbar-default navbar-fixed-top" role="navigation" id="head"></div>
  34. <div class="container-fluid">
  35. <div class="row-fluid example">
  36. <div id="sidebar-code" class="col-md-4">
  37. <div class="well sidebar-nav">
  38. <div class="nav-header"><a href="javascript:;" onclick="autoResize()" class="glyphicon glyphicon-resize-full" id ="icon-resize" ></a>option</div>
  39. <textarea id="code" name="code">
  40. option = {
  41. timeline:{
  42. data:[
  43. '2002-01-01','2003-01-01','2004-01-01','2005-01-01','2006-01-01',
  44. '2007-01-01','2008-01-01','2009-01-01','2010-01-01','2011-01-01'
  45. ],
  46. label : {
  47. formatter : function(s) {
  48. return s.slice(0, 4);
  49. }
  50. },
  51. autoPlay : true,
  52. playInterval : 1000
  53. },
  54. options:[
  55. {
  56. title : {
  57. 'text':'2002全国宏观经济指标',
  58. 'subtext':'数据来自国家统计局'
  59. },
  60. tooltip : {'trigger':'item'},
  61. toolbox : {
  62. 'show':true,
  63. 'feature':{
  64. 'mark':{'show':true},
  65. 'dataView':{'show':true,'readOnly':false},
  66. 'restore':{'show':true},
  67. 'saveAsImage':{'show':true}
  68. }
  69. },
  70. dataRange: {
  71. min: 0,
  72. max : 53000,
  73. text:['高','低'], // 文本,默认为数值文本
  74. calculable : true,
  75. x: 'left',
  76. color: ['orangered','yellow','lightskyblue']
  77. },
  78. series : [
  79. {
  80. 'name':'GDP',
  81. 'type':'map',
  82. 'data': dataMap.dataGDP['2002']
  83. }
  84. ]
  85. },
  86. {
  87. title : {'text':'2003全国宏观经济指标'},
  88. series : [
  89. {'data': dataMap.dataGDP['2003']}
  90. ]
  91. },
  92. {
  93. title : {'text':'2004全国宏观经济指标'},
  94. series : [
  95. {'data': dataMap.dataGDP['2004']}
  96. ]
  97. },
  98. {
  99. title : {'text':'2005全国宏观经济指标'},
  100. series : [
  101. {'data': dataMap.dataGDP['2005']}
  102. ]
  103. },
  104. {
  105. title : {'text':'2006全国宏观经济指标'},
  106. series : [
  107. {'data': dataMap.dataGDP['2006']}
  108. ]
  109. },
  110. {
  111. title : {'text':'2007全国宏观经济指标'},
  112. series : [
  113. {'data': dataMap.dataGDP['2007']}
  114. ]
  115. },
  116. {
  117. title : {'text':'2008全国宏观经济指标'},
  118. series : [
  119. {'data': dataMap.dataGDP['2008']}
  120. ]
  121. },
  122. {
  123. title : {'text':'2009全国宏观经济指标'},
  124. series : [
  125. {'data': dataMap.dataGDP['2009']}
  126. ]
  127. },
  128. {
  129. title : {'text':'2010全国宏观经济指标'},
  130. series : [
  131. {'data': dataMap.dataGDP['2010']}
  132. ]
  133. },
  134. {
  135. title : {'text':'2011全国宏观经济指标'},
  136. series : [
  137. {'data': dataMap.dataGDP['2011']}
  138. ]
  139. }
  140. ]
  141. };
  142. </textarea>
  143. </div><!--/.well -->
  144. </div><!--/span-->
  145. <div id="graphic" class="col-md-8">
  146. <div id="main" class="main" style="height: 530px;"></div>
  147. <div>
  148. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  149. <span class="text-primary">切换主题</span>
  150. <select id="theme-select"></select>
  151. <span id='wrong-message' style="color:red"></span>
  152. </div>
  153. </div><!--/span-->
  154. </div><!--/row-->
  155. </div><!--/.fluid-container-->
  156. <footer id="footer"></footer>
  157. <!-- Le javascript
  158. ================================================== -->
  159. <!-- Placed at the end of the document so the pages load faster -->
  160. <script src="../asset/js/jquery.min.js"></script>
  161. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  162. <script src="../asset/js/bootstrap.min.js"></script>
  163. <script src="timelineOption.js"></script>
  164. <script src="../asset/js/echartsExample.js"></script>
  165. </body>
  166. </html>