df0d90ad17437b2fbf77ce76a0209813538eb3ea.svn-base 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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: "对数轴示例",
  38. x: "center"
  39. },
  40. tooltip: {
  41. trigger: "item",
  42. formatter: "{a} <br/>{b} : {c}"
  43. },
  44. legend: {
  45. x: 'left',
  46. data: ["2的指数", "3的指数"]
  47. },
  48. xAxis: [
  49. {
  50. type: "category",
  51. name: "x",
  52. splitLine: {show: false},
  53. data: ["一", "二", "三", "四", "五", "六", "七", "八", "九"]
  54. }
  55. ],
  56. yAxis: [
  57. {
  58. type: "log",
  59. logLabelBase: 3,
  60. splitNumber: 3,
  61. name: "y",
  62. axisLabel: {
  63. margin: '25',
  64. textStyle: {
  65. align: 'left'
  66. }
  67. }
  68. }
  69. ],
  70. toolbox: {
  71. show: true,
  72. feature: {
  73. mark: {
  74. show: true
  75. },
  76. dataView: {
  77. show: true,
  78. readOnly: true
  79. },
  80. restore: {
  81. show: true
  82. },
  83. saveAsImage: {
  84. show: true
  85. }
  86. }
  87. },
  88. calculable: true,
  89. series: [
  90. {
  91. name: "3的指数",
  92. type: "line",
  93. data: [1, 3, 9, 27, 81, 247, 741, 2223, 6669]
  94. },
  95. {
  96. name: "2的指数",
  97. type: "line",
  98. data: [1, 2, 4, 8, 16, 32, 64, 128, 256]
  99. }
  100. ]
  101. };
  102. </textarea>
  103. </div><!--/.well -->
  104. </div><!--/span-->
  105. <div id="graphic" class="col-md-8">
  106. <div id="main" class="main"></div>
  107. <div>
  108. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  109. <span class="text-primary">切换主题</span>
  110. <select id="theme-select"></select>
  111. &nbsp;&nbsp;&nbsp;
  112. <a target="_blank" href="./line9.html">axisLabel普通形式显示</a>
  113. &nbsp;&nbsp;&nbsp;
  114. <a target="_blank" href="./line11.html">负值log数轴</a>
  115. <span id='wrong-message' style="color:red"></span>
  116. </div>
  117. </div><!--/span-->
  118. </div><!--/row-->
  119. </div><!--/.fluid-container-->
  120. <footer id="footer"></footer>
  121. <!-- Le javascript
  122. ================================================== -->
  123. <!-- Placed at the end of the document so the pages load faster -->
  124. <script src="../asset/js/jquery.min.js"></script>
  125. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  126. <script src="../asset/js/bootstrap.min.js"></script>
  127. <script src="../asset/js/echartsExample.js"></script>
  128. </body>
  129. </html>