Spread Windows Forms 6.0 Product Documentation
AxisLocation Enumeration
Example  See Also  Support Options
FarPoint.Win.Chart Assembly > FarPoint.Win.Chart Namespace : AxisLocation Enumeration


Glossary Item Box

Specifies the location of the axis relative to the plot area.

Syntax

Visual Basic (Declaration) 
Public Enum AxisLocation 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As AxisLocation
C# 
public enum AxisLocation : System.Enum 

Members

MemberDescription
FarDisplays axis on the far side of the plot area.
MaximumDisplay axis on the maximum value on other axis.
MinimumDisplay axis on the minimum value on other axis.
NearDisplays axis on the near side of the plot area.
OriginDisplays axis on the origin value on other axis.
ValueDisplay axis on a specified value on other axis.

Example

This example uses the AxisLocation enumeration.
C#Copy Code
FarPoint.Win.Chart.LineSeries series0 = new FarPoint.Win.Chart.LineSeries();
series0.YAxisId = 0;
series0.Values.AddRange(new double[] { 22, 24, 23, 25 });

FarPoint.Win.Chart.BarSeries series1 = new FarPoint.Win.Chart.BarSeries();
series1.YAxisId = 1;
series1.Values.AddRange(new double[] { 1000.0, 2000.0, 4000.0, 8000.0 });

FarPoint.Win.Chart.YPlotArea plotArea = new FarPoint.Win.Chart.YPlotArea();
plotArea.YAxes.Add(new FarPoint.Win.Chart.ValueAxis());
plotArea.YAxes[0].AxisId = 0;
plotArea.YAxes[1].AxisId = 1;
plotArea.YAxes[1].Location = FarPoint.Win.Chart.AxisLocation.Far;
plotArea.Series.Add(series1);
plotArea.Series.Add(series0);
FarPoint.Win.Chart.ChartModel model = new FarPoint.Win.Chart.ChartModel();
model.PlotAreas.Add(plotArea);
FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart();
chart.Size = new Size(200, 200);
chart.Location = new Point(100, 100);
chart.Model = model;
fpSpread1.Sheets[0].Charts.Add(chart);
Visual BasicCopy Code
Dim series0 As New FarPoint.Win.Chart.LineSeries()
series0.YAxisId = 0
series0.Values.AddRange(New Double() {22, 24, 23, 25})

Dim series1 As New FarPoint.Win.Chart.BarSeries()
series1.YAxisId = 1
series1.Values.AddRange(New Double() {1000.0, 2000.0, 4000.0, 8000.0})

Dim plotArea As New FarPoint.Win.Chart.YPlotArea()
plotArea.YAxes.Add(New FarPoint.Win.Chart.ValueAxis())
plotArea.YAxes(0).AxisId = 0
plotArea.YAxes(1).AxisId = 1
plotArea.YAxes(1).Location = FarPoint.Win.Chart.AxisLocation.Far
plotArea.Series.Add(series1)
plotArea.Series.Add(series0)
Dim model As New FarPoint.Win.Chart.ChartModel()
model.PlotAreas.Add(plotArea)
Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart()
chart.Size = New Size(200, 200)
chart.Location = New Point(100, 100)
chart.Model = model
FpSpread1.Sheets(0).Charts.Add(chart)

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Chart.AxisLocation

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.