Dundas Chart for ASP.NET
AxisDataView Class
Members  See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace : AxisDataView Class


Provides data view functionality for the Chart control.


AxisDataView class represents an axis data view. It allows to display only part of the avilable data.

Syntax

Visual Basic (Declaration)  
Public Class AxisDataView 
Visual Basic (Usage) Copy Code
Dim instance As AxisDataView
C#  
public class AxisDataView 

Remarks

This class represents a data view, and is exposed using the Axis.View property. A data view is a "view" of data that has a start position (represented by the Position property) and a size (represented by the Size property). See Figure 1 below.
 


  Figure 1: Size and position of a data view

Views always belong to an axis, and a view can result from either user interaction or by calling the Zoom or Scroll methods. The end-user selects a range by left-clicking the mouse and dragging the mouse, and when the mouse button is released the selected range is then displayed as a view. 

Note that when end-users zoom in on data the previous view state is automatically saved. This differs from zooming using the Zoom method, which does not save the previous view state unless the saveState parameter for one of the method definitions is set to true.

Views can be reset by the end-user by clicking on the ZoomReset button, and clicking on this button results in the previous view being displayed. Note that in the image below the view along the X axis has a position of 1, and a size of 5.

Axis label intervals (as well as tick mark and grid intervals) are recalculated automatically when zooming occurs, and ignore any previous interval-related property settings. To control how labels are displayed when the end-user zooms on data use the Axis.LabelStyle property.

Scrolling occurs when the end user clicks on a left/right or up/down button. To control the intervals of scrolling use the Size property of this class. Scrolling can also be accomplished programmatically using the Scroll method.

The MinSize property can be used to limit scrolling that occurs as a result of end-user interaction. However, note that these properties will only have an effect if the Size properties have not been set to an explicit value.

Inheritance Hierarchy

System.Object
   Dundas.Charting.WebControl.AxisDataView

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.