line2.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. tooltip : {
  37. trigger: 'axis'
  38. },
  39. legend: {
  40. data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
  41. },
  42. toolbox: {
  43. show : true,
  44. feature : {
  45. mark : {show: true},
  46. dataView : {show: true, readOnly: false},
  47. magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
  48. restore : {show: true},
  49. saveAsImage : {show: true}
  50. }
  51. },
  52. calculable : true,
  53. xAxis : [
  54. {
  55. type : 'category',
  56. boundaryGap : false,
  57. data : ['周一','周二','周三','周四','周五','周六','周日']
  58. }
  59. ],
  60. yAxis : [
  61. {
  62. type : 'value'
  63. }
  64. ],
  65. series : [
  66. {
  67. name:'邮件营销',
  68. type:'line',
  69. stack: '总量',
  70. data:[120, 132, 101, 134, 90, 230, 210]
  71. },
  72. {
  73. name:'联盟广告',
  74. type:'line',
  75. stack: '总量',
  76. data:[220, 182, 191, 234, 290, 330, 310]
  77. },
  78. {
  79. name:'视频广告',
  80. type:'line',
  81. stack: '总量',
  82. data:[150, 232, 201, 154, 190, 330, 410]
  83. },
  84. {
  85. name:'直接访问',
  86. type:'line',
  87. stack: '总量',
  88. data:[320, 332, 301, 334, 390, 330, 320]
  89. },
  90. {
  91. name:'搜索引擎',
  92. type:'line',
  93. stack: '总量',
  94. data:[820, 932, 901, 934, 1290, 1330, 1320]
  95. }
  96. ]
  97. };
  98. </textarea>
  99. </div><!--/.well -->
  100. </div><!--/span-->
  101. <div id="graphic" class="col-md-8">
  102. <div id="main" class="main"></div>
  103. <div>
  104. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  105. <span class="text-primary">切换主题</span>
  106. <select id="theme-select"></select>
  107. <span id='wrong-message' style="color:red"></span>
  108. </div>
  109. </div><!--/span-->
  110. </div><!--/row-->
  111. </div><!--/.fluid-container-->
  112. <footer id="footer"></footer>
  113. <!-- Le javascript
  114. ================================================== -->
  115. <!-- Placed at the end of the document so the pages load faster -->
  116. <script src="../asset/js/jquery.min.js"></script>
  117. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  118. <script src="../asset/js/bootstrap.min.js"></script>
  119. <script src="../asset/js/echartsExample.js"></script>
  120. </body>
  121. </html>