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. 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. 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.
They Don't Want You Knowing This About UTSW MyChart Truth or Fiction
Mychart.on('click', function (params) { var city = params.name; 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. 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.