Highcharts uses CSV data to draw charts, and highchartscsv
Highcharts plot charts using CSV format data
CSV (Comma-Separated Values, Comma-Separated value text format) is plain text data Separated by commas. Generally, each data is separated by commas (,). Several related data are grouped into one row, and multiple data rows are grouped into one CSV data. Because of its plain text features, various databases can directly export and import CSV data. Below is a simple CSV format data:
Simulated Test, score
1, 85
2,93
3,95
4,91
5, 97
6, 94
7,89
The first column is the value of the X axis, and each subsequent column is a data column. From the second value in the first row, each value is the name of a data column. In Highcharts, you need to use the configuration item CSV to import csv data. The syntax is as follows:
Csv: String
The charts generated using the above data are as follows:
Generate charts in CSV format
PS: This content has been added to "webpage chart Highcharts practice tutorial basics" v1.2.4.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.