Create a chart layout.
The data of the chart.
Optional
options: ChartLayoutOptionsThe options of the chart.
The child-widgets of the widget.
The cross-axis of the chart.
The data of the chart.
Optional
dateThe date format options of the index-axis.
Whether the grid aligns with the edge.
false
Whether the grid aligns with the edge.
Whether the grid aligns with the index-axis.
true
Whether the grid aligns with the index-axis.
The index-axis of the chart.
The index-axis of the chart.
'x'
The index-axis of the chart.
Optional
indexThe interval unit of the index-axis.
The type of the index-axis.
The legend labels of the chart.
The legends of the chart.
The paint of the chart layout.
The size of the chart layout.
The height of the chart layout.
300
The height of the chart layout. To be noted that the height is the height of chart layout (excluding label, legend, etc.).
The width of the chart layout.
300
The width of the chart layout. To be noted that the width is the width of chart layout (excluding label, legend, etc.).
{ width: 300, height: 300 }
The size of the chart layout.
The style of the chart layout.
The range of the widget, taking into account the children, based on the parent coordinate. To be noted that this method should not be overridden.
The range of the widget.
The range of the widget, taking into account the children, based on the parent coordinate. To be noted that this method should not be overridden.
The range of the widget.
Optional
params: Record<string, any>Calculate the range of the widget, based on the self-coordinate. To be noted that this method should be overridden.
The range of the widget.
Private
generatePrivate
generatePrivate
relaySet up an update function to call it when the widget is changed.
The frame from having gone to current frame.
Rest
...plugins: WidgetPlugin[]Static
absoluteStatic
get
Chart Layout
Description
Chart layout widget. It provides the layout for the chart. It includes the axis, the grid, and the legend. It should not be used directly. It is used by the chart widgets.