e58a7ad0b0eba22cd20d301c5f173a73f3c17680.svn-base 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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: 650px;
  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. var legendName = [];
  41. for (var i = 0, l = eventRiver2Data.length; i < l; i++) {
  42. legendName.push(eventRiver2Data[i].name);
  43. eventRiver2Data[i].itemStyle = {
  44. normal: {
  45. label: {
  46. show:false
  47. }
  48. },
  49. emphasis: {
  50. label: {
  51. show:false
  52. }
  53. }
  54. }
  55. }
  56. option = {
  57. title : {
  58. text: 'Event River',
  59. subtext: '纯属虚构'
  60. },
  61. tooltip : {
  62. trigger: 'item',
  63. enterable: true
  64. },
  65. legend: {
  66. data: legendName
  67. },
  68. toolbox: {
  69. show : true,
  70. feature : {
  71. mark : {show: true},
  72. restore : {show: true},
  73. saveAsImage : {show: true}
  74. }
  75. },
  76. xAxis : [
  77. {
  78. type : 'time',
  79. boundaryGap: [0.05,0.1]
  80. }
  81. ],
  82. series : eventRiver2Data
  83. };
  84. </textarea>
  85. </div><!--/.well -->
  86. </div><!--/span-->
  87. <div id="graphic" class="col-md-8">
  88. <div id="main" class="main" style="height:630px;"></div>
  89. <div>
  90. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  91. <span class="text-primary">切换主题</span>
  92. <select id="theme-select"></select>
  93. <span id='wrong-message' style="color:red"></span>
  94. </div>
  95. </div><!--/span-->
  96. </div><!--/row-->
  97. </div><!--/.fluid-container-->
  98. <footer id="footer"></footer>
  99. <!-- Le javascript
  100. ================================================== -->
  101. <!-- Placed at the end of the document so the pages load faster -->
  102. <script src="../asset/js/jquery.min.js"></script>
  103. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  104. <script src="../asset/js/bootstrap.min.js"></script>
  105. <script src="./eventRiver2_data.js"></script>
  106. <script src="../asset/js/echartsExample.js"></script>
  107. </body>
  108. </html>