SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
0

ZoomPanModifier date format charts zoom out continuously then showing NaN on the scale. It happened because the zoom level goes under the invalid date. Can you add the Minimum Zoom/Pan and Maximum Zoom/Pan area to be configured on options?

Version
1.2.1413
Images
  • You must to post comments
1
0

Hi Arun,

Thank you for the suggestion about ZoomPanModifier zooming out. We released version 1.2.1428 and it fixes this NaN issue for ENumericFormat.Date formats. If while zooming out visible range exceeds possible data values, the labels become hidden. Moreover it is possible now to set visibleRangeLimit to some value to limit the visible range while zooming out.

const { sciChartSurface, wasmContext } = await SciChartSurface.create(divElementId);
const xAxis = new CategoryAxis(wasmContext);
xAxis.labelProvider.numericFormat = ENumericFormat.Date_HHMM;
xAxis.visibleRangeLimit = new NumberRange(1, 10000);

Keep in mind if you are using CategoryAxis then the visible range contain indexes, not values, so it starting from 0.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.