Spread for ASP.NET 8.0 Product Documentation
AxisLocation Enumeration
Example Example 


Specifies the location of the axis relative to the plot area.
Syntax
'Declaration
 
Public Enum AxisLocation 
   Inherits System.Enum
'Usage
 
Dim instance As AxisLocation
public enum AxisLocation : System.Enum 
Members
MemberDescription
FarDisplays axis on the far side of the plot area.
NearDisplays axis on the near side of the plot area.
Example
This example uses the AxisLocation enumeration.
FarPoint.Web.Chart.LineSeries series0 = new FarPoint.Web.Chart.LineSeries();
series0.YAxisId = 0;
series0.Values.AddRange(new double[] { 22, 24, 23, 25 });

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

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

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

Dim plotArea As New FarPoint.Web.Chart.YPlotArea()
plotArea.YAxes.Add(New FarPoint.Web.Chart.ValueAxis())
plotArea.YAxes(0).AxisId = 0
plotArea.YAxes(1).AxisId = 1
plotArea.YAxes(1).Location = FarPoint.Web.Chart.AxisLocation.Far
plotArea.Series.Add(series1)
plotArea.Series.Add(series0)
Dim model As New FarPoint.Web.Chart.ChartModel()
model.PlotAreas.Add(plotArea)
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart()
chart.Model = model
FpSpread1.Sheets(0).Charts.Add(chart)
Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

FarPoint.Web.Chart Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.