Xceed Chart for WinForms v4.4 Documentation
ViewerRotation Property
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > View Class : ViewerRotation Property
The rotation (or tilting) of the camera.
Syntax
'Declaration
 
<DefaultValueAttribute()>

<CategoryAttribute("General")>

<DescriptionAttribute("The rotation (or tilting) of the camera.")>

Public Property ViewerRotation As Single
'Usage
 
Dim instance As View

Dim value As Single

 

instance.ViewerRotation = value

 

value = instance.ViewerRotation
[DefaultValue()]

[Category("General")]

[Description("The rotation (or tilting) of the camera.")]

public float ViewerRotation {get; set;}
Remarks
The ViewerRotation specifies the rotation around the axis defined by the chart center point (0, 0, 0) and the camera coordinates defined by the Elevation, Rotation and Distance(not exposed because it is computed dynamically) properties. You may need to modify the ViewerRotation when you want to display horizontal or top to bottom charts. However for such purposes it is recommended to use the PredefinedChartStyle property of the Chart object, because it also changes the chart axis label positioning and others.
Example
The following example modifies the ViewerRotation applied on the chart camera to display a left to right horizontal chart.
Dim chartView As View = (CType(ChartControl.Charts(0), Chart)).View 

xchartView.Projection = ProjectionType.Perspective

chartView.ViewerRotation = 270
View chartView = ((NChart)NChartControl.Charts[0]).View;

chartView.Projection = ProjectionType.Perspective;

chartView.ViewerRotation = 270;
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

View Class
View Members