Chart for WinRT > Chart Features > Axes > Multiple Axes > Creating an Auxiliary Axis |
To create an auxiliary Y Axis, use the following code:
C# |
Copy Code
|
---|---|
Axis ay2 = new Axis();
ay2.Position = AxisPosition.Far;
ay2.AxisType = AxisType.Y;
chart.View.Axes.Add(ay2);
|
Visual Basic |
Copy Code
|
---|---|
Dim ay2 As Axis = New Axis ay2.Position = AxisPosition.Far ay2.AxisType = AxisType.Y chart.View.Axes.Add(ay2) |
This will create an auxiliary Y Axis at the right, or Far, side of the chart.