ChartDirector 6.0 (C++ Edition)

Zoomable and Scrollable Charts


This section describes the ChartDirector Zooming and Scrolling Framework for creating zooming and scrollable charts.

For MFC Applications

Zooming and Scrolling Framework (MFC)
Description of the ChartDirector Zooming and Scroll Framework for MFC applications.

Simple Zooming and Scrolling (MFC)
This sample program demonstrates a simple zoomable and scrollable chart with tooltips, using mouse click and drag to control zooming and scrolling.

Zooming and Scrolling with Track Line (1) (MFC)
In addition to using mouse click and drag, this example demonstrates using a scroll bar for scrolling, and mouse wheel for zooming. It also includes a track cursor that updates the legend dynamically to display the data values as the mouse cursor moves over the chart.

Zooming and Scrolling with Track Line (2) (MFC)
This example extends Zooming and Scrolling with Track Line (1) (MFC) by adding two date picker controls. The user can use them to change the start and end dates of the chart. Conversely, if the start and end dates of the chart are changed by other means (such as using mouse drag to scroll/zoom, mouse wheel or using the scroll bar), the date picker controls will be updated.

Zooming and Scrolling with Viewport Control (MFC)
The example extends the Zooming and Scrolling with Track Line (1) (MFC) example by replacing the scrollbar with a CViewPortControl. There is also a save button to save the chart in PNG, JPG, GIF, BMP, SVG or PDF formats.

XY Zooming and Scrolling (MFC)
This example demonstrates zooming and scrolling in both horizontal and vertical directions. In addition to using mouse click and drag, this example demonstrates using a slider and a CViewPortControl to control zooming and scrolling. This example also includes a crosshair track cursor with dynamic labels on the x-axis and y-axis showing the mouse cursor position, and an image map for data point tooltips.

For QT Applications

Zooming and Scrolling Framework (QT)
Description of the ChartDirector Zooming and Scroll Framework for QT applications.

Simple Zooming and Scrolling (QT)
This sample program demonstrates a simple zoomable and scrollable chart with tooltips, using mouse click and drag to control zooming and scrolling.

Zooming and Scrolling with Track Line (1) (QT)
In addition to using mouse click and drag, this example demonstrates using a scroll bar for scrolling, and mouse wheel for zooming. It also includes a track cursor that updates the legend dynamically to display the data values as the mouse cursor moves over the chart.

Zooming and Scrolling with Track Line (2) (QT)
This example extends Zooming and Scrolling with Track Line (1) (QT) by adding two date picker controls. The user can use them to change the start and end dates of the chart. Conversely, if the start and end dates of the chart are changed by other means (such as using mouse drag to scroll/zoom, mouse wheel or using the scroll bar), the date picker controls will be updated.

Zooming and Scrolling with Viewport Control (QT)
The example extends the Zooming and Scrolling with Track Line (1) (MFC) example by replacing the scrollbar with a CViewPortControl. There is also a save button to save the chart in PNG, JPG, GIF, BMP, SVG or PDF formats.

XY Zooming and Scrolling (QT)
This example demonstrates zooming and scrolling in both horizontal and vertical directions. In addition to using mouse click and drag, this example demonstrates using a slider and a CViewPortControl to control zooming and scrolling. This example also includes a crosshair track cursor with dynamic labels on the x-axis and y-axis showing the mouse cursor position, and an image map for data point tooltips.