radar2.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. title : {
  37. text: '罗纳尔多 vs 舍普琴科',
  38. subtext: '完全实况球员数据'
  39. },
  40. tooltip : {
  41. trigger: 'axis'
  42. },
  43. legend: {
  44. x : 'center',
  45. data:['罗纳尔多','舍普琴科']
  46. },
  47. toolbox: {
  48. show : true,
  49. feature : {
  50. mark : {show: true},
  51. dataView : {show: true, readOnly: false},
  52. restore : {show: true},
  53. saveAsImage : {show: true}
  54. }
  55. },
  56. calculable : true,
  57. polar : [
  58. {
  59. indicator : [
  60. {text : '进攻', max : 100},
  61. {text : '防守', max : 100},
  62. {text : '体能', max : 100},
  63. {text : '速度', max : 100},
  64. {text : '力量', max : 100},
  65. {text : '技巧', max : 100}
  66. ],
  67. radius : 130
  68. }
  69. ],
  70. series : [
  71. {
  72. name: '完全实况球员数据',
  73. type: 'radar',
  74. itemStyle: {
  75. normal: {
  76. areaStyle: {
  77. type: 'default'
  78. }
  79. }
  80. },
  81. data : [
  82. {
  83. value : [97, 42, 88, 94, 90, 86],
  84. name : '舍普琴科'
  85. },
  86. {
  87. value : [97, 32, 74, 95, 88, 92],
  88. name : '罗纳尔多'
  89. }
  90. ]
  91. }
  92. ]
  93. };
  94. </textarea>
  95. </div><!--/.well -->
  96. </div><!--/span-->
  97. <div id="graphic" class="col-md-8">
  98. <div id="main" class="main"></div>
  99. <div>
  100. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  101. <span class="text-primary">切换主题</span>
  102. <select id="theme-select"></select>
  103. <span id='wrong-message' style="color:red"></span>
  104. </div>
  105. </div><!--/span-->
  106. </div><!--/row-->
  107. </div><!--/.fluid-container-->
  108. <footer id="footer"></footer>
  109. <!-- Le javascript
  110. ================================================== -->
  111. <!-- Placed at the end of the document so the pages load faster -->
  112. <script src="../asset/js/jquery.min.js"></script>
  113. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  114. <script src="../asset/js/bootstrap.min.js"></script>
  115. <script src="../asset/js/echartsExample.js"></script>
  116. </body>
  117. </html>