It may be that my personal understanding is limited and I have always thought that it is difficult to display a slightly Dynamic Chart Only by html. However, after seeing jqPlot, my understanding has changed a lot, jqplpt-HTML-based chart display plug-in that does not generate images. The most valuable thing is that it can generate dynamic data prompts like flex and dynamically change the data display range. Jqplot is based on a basic jqplot. js files with multiple plug-ins supported by js files-that is, jqplot. js files can only be used to draw line charts. For pie charts and bar charts, pieRenderer must be introduced. js files.
Here, we will refer to the official jqPlot documentation and take the pie chart as an example to briefly describe the usage of jqPlot:
Step 1: Introduce the js file (if it is a chart other than a line chart, you need to introduce the relevant js file. Here, introduce the pie chart file pieRenderer)
The Code is as follows: