# Multiple Axes

## Content

In addition to the default X-axis and Y-axis, **FlexChar**t supports multiple axes in the same chart. Multiple axes are useful when chart series have significantly different value ranges or units.
To add a secondary axis, create an `Axis` object and assign it to the `AxisX` or `AxisY` property of the corresponding series.
For example, a chart can display temperature values against an axis on the left and precipitation values against an axis on the right. Each axis can have its own position, title, scale, and appearance

```csharp
//Creating and adding first Series to chart and binding it (AxisY) to 'HighTemp' field of Data
var series1 = new Series()
{
    //Name property specifies the string to be displayed corresponding to this Series in Legend
    Name = "Temperature(°C)",
    Binding = "HighTemp",
    //With more than one series setting ChartType (default:column) is mandatory
    ChartType = ChartType.Column,
    //Adding axis to the series 
    AxisY = new Axis()
    {
        //Set where to show the AxisLine relative to PlotArea 
        Position = Position.Left,
        //Title property specifies the string to be displayed along AxisLine 
        Title = "Temperature (°C)",
        //Whether or not to show the AxisLine
        AxisLine = true,
    }
};
this.flexChart1.Series.Add(series1);
//Creating and adding second Series to chart and binding it (AxisY) to 'Precipitation' field of Data
var series2 = new Series()
{
    //Name property specifies the string to be displayed corresponding to this Series in Legend
    Name = "Precipitation(mm)",
    Binding = "Precipitation",
    //With more than one series setting ChartType (default:column) is mandatory
    ChartType = ChartType.LineSymbols,
    //Adding axis to the series 
    AxisY = new Axis()
    {
        //Set where to show the AxisLine relative to PlotArea 
        Position = Position.Right,
        //Title property specifies the string to be displayed along AxisLine 
        Title = "Precipitation (mm)",
        //Whether or not to show the AxisLine
        AxisLine = true,
    },
};
this.flexChart1.Series.Add(series2);
```

```vbnet
'Creating and adding first Series to chart and binding it (AxisY) to 'HighTemp' field of Data
'Name property specifies the string to be displayed corresponding to this Series in Legend

'With more than one series setting ChartType (default:column) is mandatory

'Adding axis to the series 
'Set where to show the AxisLine relative to PlotArea 
'Title property specifies the string to be displayed along AxisLine 
'Whether or not to show the AxisLine
Dim series1 As Series = New Series() With {
      .Name = "Temperature(°C)",
      .Binding = "HighTemp",
      .ChartType = ChartType.Column,
      .AxisY = New Axis() With {
          .Position = Position.Left,
          .Title = "Temperature (°C)",
          .AxisLine = True
    }
}
Me.flexChart1.Series.Add(series1)
'Creating and adding second Series to chart and binding it (AxisY) to 'Precipitation' field of Data
'Name property specifies the string to be displayed corresponding to this Series in Legend

'With more than one series setting ChartType (default:column) is mandatory

'Adding axis to the series 
'Set where to show the AxisLine relative to PlotArea 
'Title property specifies the string to be displayed along AxisLine 
'Whether or not to show the AxisLine
Dim series2 As Series = New Series() With {
      .Name = "Precipitation(mm)",
      .Binding = "Precipitation",
      .ChartType = ChartType.LineSymbols,
      .AxisY = New Axis() With {
          .Position = Position.Right,
          .Title = "Precipitation (mm)",
          .AxisLine = True
    }
}
Me.flexChart1.Series.Add(series2)
```