Two Y axis
Posted: Mon Sep 12, 2022 5:33 pm
Hi
I will add second Y-axis ( to the right) to XY chart . if I use this
AxisY axisY = new AxisY(_chart.ViewXY); ;
axisY.SetRange(0, 20);
axisY.LabelsNumberFormat = "0";
axisY.AutoFormatLabels = false;
_chart.ViewXY.AxisLayout.YAxisAutoPlacement = YAxisAutoPlacement.AllLeft;
AxisY axisY2 = new AxisY(_chart.ViewXY);
axisY2.SetRange(0, 50);
axisY2.LabelsNumberFormat = "0";
axisY2.AutoFormatLabels = false;
_chart.ViewXY.AxisLayout.YAxisAutoPlacement = YAxisAutoPlacement.LeftThenRight;
I can only see first axis (the left one)
What do I do wrong?
I will add second Y-axis ( to the right) to XY chart . if I use this
AxisY axisY = new AxisY(_chart.ViewXY); ;
axisY.SetRange(0, 20);
axisY.LabelsNumberFormat = "0";
axisY.AutoFormatLabels = false;
_chart.ViewXY.AxisLayout.YAxisAutoPlacement = YAxisAutoPlacement.AllLeft;
AxisY axisY2 = new AxisY(_chart.ViewXY);
axisY2.SetRange(0, 50);
axisY2.LabelsNumberFormat = "0";
axisY2.AutoFormatLabels = false;
_chart.ViewXY.AxisLayout.YAxisAutoPlacement = YAxisAutoPlacement.LeftThenRight;
I can only see first axis (the left one)
What do I do wrong?