Skip to main content

Crosshair

When enabled crosshair cursor is changed from default one to custom crosshair. (It's enabled by default.)

It's also changed while drawing:

How to control crosshair in DXcharts React

Crosshair is enabled by default (cross-and-labels). To set it explicitly, pass initialChartConfig in ChartReactApp dependencies (see configuration API reference):

initialChartConfig: {
components: {
crossTool: {
type: 'cross-and-labels', // 'only-labels' | 'none'
xAxisLabelFormat: [{ format: 'dd.MM HH:mm' }],
}
}
}

Read more about CrossTool.