FlexChart > Working with FlexChart > FlexChart Elements > Axes > Axes Position |
FlexChart lets you change the position of the axes by using the Position property.
The Position property for an axis can be set to the following values in the Position enumeration:
Property | Description |
---|---|
Position.Auto | Positions the item automatically. |
Position.Bottom | Positions the item at the bottom. |
Position.Left | Positions the item at the left. |
Position.None | Hides the item. |
Position.Right | Positions the item at the right. |
Position.Top | Positions the item at the top. |
Here is the sample code:
' this causes X axis to be rendered at the top horizontally FlexChart1.AxisX.Position = C1.Chart.Position.Top ' this causes Y axis to be rendered at the right vertically FlexChart1.AxisY.Position = C1.Chart.Position.Right
// this causes X axis to be rendered at the top horizontally flexChart1.AxisX.Position = C1.Chart.Position.Top; // this causes Y axis to be rendered at the right vertically flexChart1.AxisY.Position = C1.Chart.Position.Right;