ChartDirector 7.1 (.NET Edition)

WebChartViewer.ZoomDirection


Declaration

[C#]public WebChartDirection ZoomDirection {get; set;};
[VB]Public Property ZoomDirection As WebChartDirection

Description

Gets or sets the zoom direction for mouse zoom in/out actions.

Note: This property is applicable only if the browser side JsChartViewer is included in the web page.

In zoom operations for charts, it is common to restrict zooming to one direction only. For example, in a chart plotting temperature against time, zooming in from a yearly chart to a daily chart may mean the time axis (x-axis) is zoomed in by 36500%, while the temperature axis (y-axis) may be auto-scaled and not zoomed in at all. The user may be surprise if you also zoom in the y-axis by 36500%, in which case the chart may become hardly readable.

This method allows you to determine the zoom direction for mouse zoom actions (see WebChartViewer.MouseUsage), specified using the following predefined constants:

ConstantValueDescription
WebChartDirection.Horizontal0Zoom actions apply to horizontal direction only.
WebChartDirection.Vertical1Zoom actions apply to vertical direction only.
WebChartDirection.HorizontalVertical2Zoom actions apply to both horizontal and vertical directions.