Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Chart Control
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Providing Data
   [Expand]Appearance Customization
   [Collapse]End-User Features
    [Collapse]Basic End-User Interaction
      Selecting and Highlighting (2D Charts)
      Zooming and Scrolling (2D XY-Charts)
      Zooming and Scrolling (3D Charts)
      Rotation (3D Charts)
    [Expand]Crosshair Cursor
     Tooltips
    [Expand]Animation
     Printing and Exporting
     Chart Designer for End-Users
     Integration with a Range Control
     Chart Wizard for End-Users
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Additional Resources
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Zooming and Scrolling (3D Charts)

This document describes how to provide the capability of scrolling and zooming for a 3D chart. A similar functionality is available for 2D charts as well, which is explained at Zooming and Scrolling (2D XY-Charts).

Note that both zooming and scrolling are available for 3D charts created with the ChartControl only (this feature isn't supported for the WebChartControl).

This document consists of the following sections.

Expanded Zooming a Chart

To enable a diagram's zooming, set the Diagram3D.RuntimeZooming property to true.

After zooming is enabled, it is possible to choose how it can be performed (using the keyboard and / or mouse, gestures such as spread/pinch in your touchscreen device) via the Diagram3D.ZoomingOptions property.

To provide a custom functionality when a chart is being zoomed, handle the ChartControl.Zoom3D event. In addition, you can provide custom cursors for chart zooming in the ChartControl.QueryCursor event handler.

To zoom in or out of a chart's diagram, do one of the following.

Action Effect
Press SHIFT and click the diagram. After an end-user presses the SHIFT key, the mouse pointer is changed to . Then, move the mouse pointer to the chart region to be zoomed into, and click the left mouse button (holding the SHIFT key).The chart's diagram is zoomed in by 2 times.
Press ALT and click the diagram. After an end-user presses the ALT key, the mouse pointer is changed to . Then, move the mouse pointer to the region to be zoomed out, and click the left mouse button (holding the ALT key).The chart's diagram is zoomed out by 2 times.
Use CTRL with the "+" or "-" keys. If an end-user presses and holds the CTRL key while pressing the "+" key, a chart's diagram is zoomed in by 3 percent from the current axes ranges.
If an end-user presses and holds the CTRL key while pressing the "-" key, a chart's diagram is zoomed out by 3 percent from the current axes ranges.
Use the mouse wheel. An end-user can scroll the mouse wheel to zoom in and out of a chart's diagram in the same way one can zoom when using other Windows applications.
Use the spread or pinch gestures on a touchscreen device.

An end-user can zoom in or out a chart's diagram performing either spread or pinch gestures correspondingly in any device supported touchscreen.

Use CTRL + Z combination. Pressing the CTRL + Z keys returns the previous zoom state of a chart's diagram. NOTE: All subsequent operations of a similar kind (for instance, multiple "zoom in" operations) are considered as a single transaction. Pressing CTRL + Z returns the zoom state which existed before the first zoom operation in a zoom series.
Note

The maximum allowed zoom value for XtraCharts is 500% (this means that a chart is zoomed into 5 times). When an end-user reaches this limit and presses the SHIFT key, the mouse pointer is changed to .

Expanded Scrolling a Chart

To enable diagram scrolling, set the Diagram3D.RuntimeScrolling property to true.

After scrolling is enabled, it is possible to choose how it can be performed (using the keyboard, mouse, flick gestures if you have a touchscreen device) via the Diagram3D.ScrollingOptions property.

To provide a custom functionality when a chart is being scrolled, handle the ChartControl.Scroll3D event. In addition, you can provide custom cursors for chart scrolling in the ChartControl.QueryCursor event handler.

To scroll a chart's diagram, do one of the following.

Action Effect
Use CTRL + "Arrow" keys (LEFT, UP, RIGHT or DOWN). If an end-user presses CTRL + LEFT, a chart's diagram is moved to the left.
If an end-user presses CTRL + UP, a chart's diagram is moved up.
If an end-user presses CTRL + RIGHT, a chart's diagram is moved to the right.
If an end-user presses CTRL + DOWN, a chart's diagram is moved down.
Hold down the left mouse wheel, and drag it. After you hold down a mouse wheel, the mouse pointer is changed from to . Then drag the mouse pointer to scroll a chart's diagram.
Use flick gestures on a touchscreen device.

An end-user can scroll a diagram using flick gestures on the touchscreen device.

Expanded See Also

How would you rate this topic?​​​​​​​