12345678910111213141516171819202122232425262728 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Awesome go-echarts</title>
- <script src="https://go-echarts.github.io/go-echarts-assets/assets/echarts.min.js"></script>
- <script src="https://go-echarts.github.io/go-echarts-assets/assets/themes/westeros.js"></script>
- </head>
- <body>
- <div class="container">
- <div class="item" id="iOZLZHxrhgWM" style="width:900px;height:500px;"></div>
- </div>
- <script type="text/javascript">
- "use strict";
- let goecharts_iOZLZHxrhgWM = echarts.init(document.getElementById('iOZLZHxrhgWM'), "westeros");
- let option_iOZLZHxrhgWM = {"legend":{"show":false},"series":[{"name":"Category A","type":"line","step":true,"connectNulls":true,"waveAnimation":false,"renderLabelForZeroData":false,"selectedMode":false,"animation":false,"data":[{"value":366,"XAxisIndex":0,"YAxisIndex":0},{"value":466,"XAxisIndex":0,"YAxisIndex":0},{"value":486,"XAxisIndex":0,"YAxisIndex":0},{"value":480,"XAxisIndex":0,"YAxisIndex":0},{"value":506,"XAxisIndex":0,"YAxisIndex":0},{"value":482,"XAxisIndex":0,"YAxisIndex":0},{"value":471,"XAxisIndex":0,"YAxisIndex":0},{"value":486,"XAxisIndex":0,"YAxisIndex":0},{"value":467,"XAxisIndex":0,"YAxisIndex":0},{"value":459,"XAxisIndex":0,"YAxisIndex":0},{"value":389,"XAxisIndex":0,"YAxisIndex":0},{"value":370,"XAxisIndex":0,"YAxisIndex":0},{"value":476,"XAxisIndex":0,"YAxisIndex":0},{"value":472,"XAxisIndex":0,"YAxisIndex":0},{"value":478,"XAxisIndex":0,"YAxisIndex":0},{"value":456,"XAxisIndex":0,"YAxisIndex":0},{"value":448,"XAxisIndex":0,"YAxisIndex":0},{"value":456,"XAxisIndex":0,"YAxisIndex":0},{"value":446,"XAxisIndex":0,"YAxisIndex":0}]}],"title":{"text":"group_id=2","subtext":"group_id=2,group size=863"},"tooltip":{"show":false},"xAxis":[{"data":["366","466","486","480","506","482","471","486","467","459","389","370","476","472","478","456","448","456","446"]}],"yAxis":[{}]};
- goecharts_iOZLZHxrhgWM.setOption(option_iOZLZHxrhgWM);
- </script>
- <style>
- .container {margin-top:30px; display: flex;justify-content: center;align-items: center;}
- .item {margin: auto;}
- </style>
- </body>
- </html>
|