ComponentOne Chart for .NET (2.0) Search HelpCentral 

Rotating, Scaling, Translating and Zooming

C1Chart contains built in tools that simplify the implementation of interactive behaviors for the end user. The end user can explore, rotate and zoom chart using combinations of mouse and shift keys.

Run-Time Interaction

C1Chart contains built in tools that simplify the implementation of interactive behaviors for the end user. The end user can explore, rotate and zoom chart using combinations of mouse and shift keys.

The control center for interactive features is the Interaction property of C1Chart. The Interaction object has a number of properties that allow customization of the interface. All of the properties can be set or changed at design time through the Properties window or the Action Collection Editor and programmatically through the Interaction class. For more information on the Action Collection Editor see, Action Collection Editor.

The Interaction class includes the following properties:

·      The IsDefault property is a Boolean value that indicates whether the action settings are default. To restore defaults, set the IsDefault property to True.

·      The Enabled property switches on/off interaction. Note that by default interaction is disabled.

·      The Actions property contains a collection of actions that are available for chart.

The following list reveals the supported actions:

·      Rotate action allows changing viewing angle. This action is available only for chart with 3D effects.

·      Scale action increases or decreases the scale of chart along the selected axis or axes.

·      Translate action provides the opportunity to scroll through plot area.

·      Zoom action allows the user to select rectangular area for viewing.

The scaling, translation and zooming are available only for chart with Cartesian axes.

Each Action object provides set of properties that help to customize behavior of action.

·      The Name gets the name of the action.

·      The Axis property specifies what axis will be involved. It is possible to use only one axis for the action. For example, scaling or translation can be applied in horizontal (x-axis) or vertical (y-axis) direction.

·      The MouseButton and Modifier properties specify the mouse button and key (ALT, CONTROL or SHIFT) combination that will invoke the execution of the action.


Controlling Transformation


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.