0fdc08e72d8d9808949a516035953d781439a768.svn-base 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. subtext: 'From d3.js',
  39. x:'right',
  40. y:'bottom'
  41. },
  42. tooltip : {
  43. trigger: 'item',
  44. formatter: function (params) {
  45. if (params.indicator2) { // is edge
  46. return params.value.weight;
  47. } else {// is node
  48. return params.name
  49. }
  50. }
  51. },
  52. toolbox: {
  53. show : true,
  54. feature : {
  55. restore : {show: true},
  56. magicType: {show: true, type: ['force', 'chord']},
  57. saveAsImage : {show: true}
  58. }
  59. },
  60. legend: {
  61. x: 'left',
  62. data:['group1','group2', 'group3', 'group4']
  63. },
  64. series : [
  65. {
  66. type:'chord',
  67. sort : 'ascending',
  68. sortSub : 'descending',
  69. showScale : true,
  70. showScaleText : true,
  71. data : [
  72. {name : 'group1'},
  73. {name : 'group2'},
  74. {name : 'group3'},
  75. {name : 'group4'}
  76. ],
  77. itemStyle : {
  78. normal : {
  79. label : {
  80. show : false
  81. }
  82. }
  83. },
  84. matrix : [
  85. [11975, 5871, 8916, 2868],
  86. [ 1951, 10048, 2060, 6171],
  87. [ 8010, 16145, 8090, 8045],
  88. [ 1013, 990, 940, 6907]
  89. ]
  90. }
  91. ]
  92. };
  93. </textarea>
  94. </div><!--/.well -->
  95. </div><!--/span-->
  96. <div id="graphic" class="col-md-8">
  97. <div id="main" class="main"></div>
  98. <div>
  99. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  100. <span class="text-primary">切换主题</span>
  101. <select id="theme-select"></select>
  102. <span id='wrong-message' style="color:red"></span>
  103. </div>
  104. </div><!--/span-->
  105. </div><!--/row-->
  106. </div><!--/.fluid-container-->
  107. <footer id="footer"></footer>
  108. <!-- Le javascript
  109. ================================================== -->
  110. <!-- Placed at the end of the document so the pages load faster -->
  111. <script src="../asset/js/jquery.min.js"></script>
  112. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  113. <script src="../asset/js/bootstrap.min.js"></script>
  114. <script src="../asset/js/echartsExample.js"></script>
  115. </body>
  116. </html>