Xceed Chart for WinForms v4.4 Documentation
Rotation Property
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > View Class : Rotation Property
The rotation of the viewpoint in degrees.
Syntax
'Declaration
 
<DescriptionAttribute("The rotation of the viewpoint in degrees.")>

<CategoryAttribute("General")>

<DefaultValueAttribute()>

Public Property Rotation As Single
'Usage
 
Dim instance As View

Dim value As Single

 

instance.Rotation = value

 

value = instance.Rotation
[Description("The rotation of the viewpoint in degrees.")]

[Category("General")]

[DefaultValue()]

public float Rotation {get; set;}
Remarks
The default value is 0 degrees ensuring that the chart is not rotated. To look at the chart from the left you'll have to modify the rotation to 90 degrees. The rotation and elevation properties define the polar coordinates of camera relative to the chart center point.
Example
The following example modifies the rotation applied on the chart camera:
Dim chartView As View = (CType(ChartControl.Charts(0), Chart)).View 

chartView.Rotation = 90
View chartView = ((NChart)NChartControl.Charts[0]).View;

chartView.Rotation = 90;
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