I. Overview
The chart supports comprehensive customization, allowing users to make more annotated charts on the basic chart.
Coordinate axis, labels, and cue points can all be customized. In the custom function, this refers to the current data point object. The description of common attributes is shown in the following table:
1. Single series object attributes
Attributes | Types | Description |
---|---|---|
this.points | Array | All data points of the current series |
this.name | String | The name of the current series, consistent with the series name shown in the legend |
this.type | String | The chart types of the current series, the types currently included are as shown in the figure below: |
2. Single data point object attributes
Attributes | Types | Description |
---|---|---|
this.category | String | For the axis chart, it indicates the name of the category where the data point is located |
this.seriesName | String | The name of the series where the current data point is located |
this.name | String | For the map, name represents the area name of the current data point, such as Jiangsu Province, Nantong City, etc. |
this.value | Number | For the axis chart, it indicates the value corresponding to the data point on the value axis Note: The value of the scatter chart corresponds to the value of the "value" field |
this.percentage | Number | Indicates the percentage of the current data point |
this.TargetValue | Number | Indicates the target value of the gauge (not including the pointer gauge) Note: This.target in the designer before version 10.0.16 represents the target value, but this.target is not an official interface, so use it with caution. |
this.points | Array | For a chart with coordinate axis, this parameter represents all the points in the category where the current data point is located For the area map, this parameter represents a different series of points in the same area It is not recommended to use this attribute for other chart types |
this.series | Object | The series of the current data point |
this.processes[this.processes.length - 1].name | Object | For Gantt chart, the name of the project where the current data point is located |
this.startTime | Object | For the Gantt chart, the start time of the current data point |
this.finishTime | Object | For Gantt chart, the end time of the current data point |
this.duration | Object | For Gantt chart, the duration of the current data point |
this.progress | Number | For the Gantt chart, the progress of the current data point |
this.parent | Object | For a multi-layer pie chart, parent represents the data object of the parent node |
Note: Due to browser compatibility issues, the HTML content written here during customization needs to be modified according to the actual browser, such as the lower version of IE browser.