Skip to main content

PolarCursorModifier

The PolarCursorModifieršŸ“˜ is a modifier that provides a crosshair cursor on a polar chart. It allows users to hover over data points and see their values, enhancing the interactivity of the chart.

Adding a PolarCursorModifier to a Chart​

Similarly to the CursorModifier for a Cartesian 2D chart, a PolarCursorModifieršŸ“˜ can be added to the sciChartSurface.chartModifiers collection of a SciChartPolarSurfacešŸ“˜ to enable crosshair behavior. For example:

const { PolarCursorModifier, EAngularAxisLabelPlacement, ERadialAxisLabelPlacement } = SciChart;
// or for npm: import { PolarCursorModifier, ... } from "scichart";

// const { sciChartSurface, wasmContext } = await SciChartPolarSurface.create(divElementId, {})
// ...

// Add PolarCursorModifier behaviour to the chart
sciChartSurface.chartModifiers.add(
new PolarCursorModifier({
lineColor: "#55aaff",
lineThickness: 2,
axisLabelFill: "#55aaff",
angularAxisLabelPlacement: EAngularAxisLabelPlacement.Center,
radialAxisLabelPlacement: ERadialAxisLabelPlacement.Center,
showRadialLine: true,
showCircularLine: true
})
);

This results in the following behavior:

See Also:​