scale-integer.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1" />
  5. <script src="esl.js"></script>
  6. <script src="config.js"></script>
  7. </head>
  8. <body>
  9. <style>
  10. html, body, #main {
  11. width: 100%;
  12. height: 100%;
  13. }
  14. </style>
  15. <div id="main"></div>
  16. <script>
  17. require([
  18. 'echarts',
  19. 'echarts/chart/line',
  20. 'echarts/component/legend'
  21. ], function (echarts) {
  22. var chart = echarts.init(document.getElementById('main'));
  23. chart.setOption({
  24. xAxis: {
  25. data: ['类目1', '类目2', '类目3', '类目4', '类目5']
  26. },
  27. yAxis: {
  28. minInterval: 1
  29. },
  30. series: [{
  31. name: 'line',
  32. type: 'line',
  33. stack: 'all',
  34. symbol: 'circle',
  35. symbolSize: 10,
  36. data: [0, 0, 0, 0, 0]
  37. }]
  38. });
  39. });
  40. </script>
  41. </body>
  42. </html>