Skip to main content

PolarMouseWheelZoomModifier

The PolarMouseWheelZoomModifier📘 is special a modifier that allows users to interact with the polar chart in 2 major ways:

1. Zooming in and out, using EActionType.Zoom (default)​

const { PolarMouseWheelZoomModifier, EActionType } = SciChart;
// or for npm: import { PolarMouseWheelZoomModifier, EActionType } from "scichart";

// Add PolarMouseWheelZoomModifier behaviour to the chart
sciChartSurface.chartModifiers.add(
new PolarMouseWheelZoomModifier({
growFactor: 0.002,
zoomSize: false,
defaultActionType: EActionType.Zoom // DEFAULT value -> for zooming / scaling the polar chart
// defaultActionType: EActionType.Pan // secondary value -> pans / spins the polar chart
}),
);

This will result in the following behavior:

2. Panning / Spinning the chart, with EActionType.Pan​

const { PolarMouseWheelZoomModifier, EActionType } = SciChart;
// or for npm: import { PolarMouseWheelZoomModifier, EActionType } from "scichart";

// Add PolarMouseWheelZoomModifier behaviour to the chart
sciChartSurface.chartModifiers.add(
new PolarMouseWheelZoomModifier({
growFactor: 0.002,
zoomSize: false,
defaultActionType: EActionType.Pan
}),
);

Which will result in this:

  • use whichever configuration you prefer, depending on the desired interaction with the polar chart.

See Also:​