String Handling in Highcharts (3)
Simplifying node Assignment
When there are multiple columns of data in the chart, and the x values for each node of the data column are the same, you can directly specify the scale by name directly in the x-axis settings. The code is as follows:
- xaxis:[{
- Type: ' Category ',
- categories:[' first time ', ' second ', ' third ', ' fourth ', ' fifth time '
- }]
The result of this is separating the name and y values in the node.
"Instance 2-8:strdatasimple" simplifies the node data of instance 2-6 and re-forms the chart. The core code is as follows:
- Series: [{
- Data: [92, 85, 89, 97, 91]//Simplified node
- }],
- Xaxis: [{
- Type: ' Category ',
- categories:[' first ', ' second ', ' third ', ' fourth ', ' fifth time '//Specify X-axis scale
- }],
After executing the code, run the effect.
Simplifying node Assignment
PS: This content has been added to the "Web Diagram highcharts Practical tutorial Basic article" v1.2.5.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
String Handling in Highcharts (3)