Line Chart
A line chart is a chart in which data are connected by lines.
Tips
Properties
UI Dialog
Item | Input value | Option | Default value |
---|---|---|---|
ID | string | automatic | |
Width | string | 750 | |
Height | string | 250 | |
X | string | ||
Y | string | ||
Chart Type | option | • line • spline | line |
Visibility | boolean | • on • off | on |
Value | string | ||
Scale | table | ||
Series | table | ||
Legend | table |
Action
Item | Properties | Data Type | Options | Default value |
---|---|---|---|---|
ID | id | string | automatic | |
Width | width | string | 750 | |
Height | height | string | 250 | |
X | x | string | ||
Y | y | string | ||
Chart Type | chartType | string | • line • spline | line |
Visibility | visibility | boolean | • true • false | true |
Value | value | array of object | ||
Scale | scale | object | ||
Series | series | array of object | ||
Legend | legend | object |
Tips
Example 1 Value (value)
The chart data values describe the data for each plot on the X axis as an object, and the entire chart is represented as an array.
In the example below, the X-axis is plotted from 02 to 11 (month) and shows data from 4 series (companyA to D).
Example 2 Scale (scale)
Sets the minimum and maximum Y-axis values, as well as the rotation angle of the ticks and labels.
Bottom | Bottom Scale Rotate | Left Min | Left Max | Left Max Ticks | Left Scale Rotate |
---|---|---|---|---|---|
month | 0 | 0 | 100 | 10 | 0 |
Tips
Example 3 Series (series)
Series drawing settings.
ID | Value | Color | Stroke Width |
---|---|---|---|
A | company A | #81C4E8 | 3 |
B | company B | #74A2E7 | 3 |
C | company C | #5E83BA | 3 |
Example 4 Legend (legend)
Sets legend information.
Series | Horizontal Align | Vertical Align |
---|---|---|
A,B,C | right | top |
- The options for Horizontal Align are left | center | right (default).
- The options for Vertical Align are top (default) | bottom.
Event
None