In version 3.5 released by echarts, a calendar coordinate system was added, which is used to draw charts in the calendar. How to quickly write a calendar chart? The above effect can be achieved through the following three steps: Step 1: Introduce the latest js file download. Echarts is a powerful data visualization library that can implement many types of charts. To implement multi-axis indicators and multi-graph linkage, you can follow the steps below: Set multiple axes: In echarts, you can set it through the grid attribute. It is assumed here that the id of the echarts instance is mychart. The distance obtained through getoption().grid.top is a string, and you can convert it into a numerical type for subsequent operations.
Alomere Health The Org
Mychart.on('click', function (params) { var city = params.name; In the above example, we obtained the name of each stacking area by traversing the series configuration, and obtained the corresponding dom element based on the name (assuming that the id of the dom element of each stacking area is the same as the name of the stacking area. Have you ever tried using echarts_render to get the javascript code for the generated chart, and then passing the javascript code into the front-end page in the django view function? After creating the django project and application, define a view in views.py.