8b1ef280eb762c56929c4cf2e6b69cc02d53de06.svn-base 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. tooltip : {
  37. trigger: 'axis'
  38. },
  39. toolbox: {
  40. show : true,
  41. feature : {
  42. mark : {show: true},
  43. dataZoom : {show: true},
  44. dataView : {show: true},
  45. magicType : {show: true, type: ['line', 'bar']},
  46. restore : {show: true},
  47. saveAsImage : {show: true}
  48. }
  49. },
  50. dataZoom : {
  51. show : true,
  52. realtime : true,
  53. //orient: 'vertical', // 'horizontal'
  54. //x: 0,
  55. y: 36,
  56. //width: 400,
  57. height: 20,
  58. //backgroundColor: 'rgba(221,160,221,0.5)',
  59. //dataBackgroundColor: 'rgba(138,43,226,0.5)',
  60. //fillerColor: 'rgba(38,143,26,0.6)',
  61. //handleColor: 'rgba(128,43,16,0.8)',
  62. //xAxisIndex:[],
  63. //yAxisIndex:[],
  64. start : 40,
  65. end : 60
  66. },
  67. xAxis : [
  68. {
  69. type : 'category',
  70. boundaryGap : false,
  71. data : function (){
  72. var list = [];
  73. var n = 0;
  74. while (n++ < 150) {
  75. list.push(n);
  76. }
  77. return list;
  78. }()
  79. }
  80. ],
  81. yAxis : [
  82. {
  83. type : 'value'
  84. }
  85. ],
  86. series : [
  87. {
  88. name:'dz',
  89. type:'line',
  90. data:function (){
  91. var list = [];
  92. for (var i = 1; i <= 150; i++) {
  93. list.push(Math.round(Math.random()* 30));
  94. }
  95. return list;
  96. }()
  97. }
  98. ],
  99. calculable:false
  100. };
  101. </textarea>
  102. </div><!--/.well -->
  103. </div><!--/span-->
  104. <div id="graphic" class="col-md-8">
  105. <div id="main" class="main"></div>
  106. <div>
  107. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  108. <span class="text-primary">切换主题</span>
  109. <select id="theme-select"></select>
  110. <span id='wrong-message' style="color:red"></span>
  111. </div>
  112. </div><!--/span-->
  113. </div><!--/row-->
  114. </div><!--/.fluid-container-->
  115. <footer id="footer"></footer>
  116. <!-- Le javascript
  117. ================================================== -->
  118. <!-- Placed at the end of the document so the pages load faster -->
  119. <script src="../asset/js/jquery.min.js"></script>
  120. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  121. <script src="../asset/js/bootstrap.min.js"></script>
  122. <script src="../asset/js/echartsExample.js"></script>
  123. </body>
  124. </html>