Optional animationsConvenience flag that can be used to enable/disable all animations in a component.
Optional cursorBuilder for the charts' auto cursor. Use CursorBuilders.XY to modify the default builder, using methods of CursorXYBuilder.
// Example, change cursor ResultTable background shape.
const chart = LightningChart.ChartXY({
cursorBuilder: CursorBuilders.XY
.setResultTableBackground(UIBackgrounds.Circle)
})
Optional defaultInterface for specifying Axis X configurations that can't be changed after creation of the Axis.
Example usage:
ChartXY({
defaultAxisX: {
opposite: true,
}
})
ChartXY({
defaultAxisX: {
type: 'logarithmic',
base: 10,
}
})
NOTE: Not all series types support logarithmic axes! Attaching a non-supported Series will crash the application.
List of series that support logarithmic Axes:
List of series that do not support logarithmic Axes:
Optional defaultInterface for specifying Axis Y configurations that can't be changed after creation of the Axis.
Example usage:
ChartXY({
defaultAxisY: {
opposite: true,
}
})
ChartXY({
defaultAxisY: {
type: 'logarithmic',
base: 10,
}
})
NOTE: Not all series types support logarithmic axes! Attaching a non-supported Series will crash the application.
List of series that support logarithmic Axes:
List of series that do not support logarithmic Axes:
Optional legendConfiguration for the chart legend.
Interface for readonly configuration of ChartXY.
Some properties of
ChartXYcan only be configured when it is created. These arguments are all optional, and are wrapped in a single object parameter:Watch out! The full set of available readonly configuration parameters depends on if the chart is standalone, or inside a dashboard:
For standalone
ChartXY, more parameters are documented in ChartXY.For dashboard
ChartXY, more parameters are documented in createChartXY.Commonly used properties:
Example usage: