I have a chart which needs 2 Y axis. If I use the Column Chart for example it works.
However if I change it to ColumnChart3D, the left Axis (y) is ok, but the Y2 axis, to the right, all the axis labels are printed one on top of the other.
Am I missing something ?
thanks
Fred
Hello Fred,
If you want to achieve desired behavior you should set both properties to True:
- Y2.Labels.Visible=true;
- Y2.Visible = true;
Please take a look at the attached video file for more details.
Regards
This is what I get..
see on the right, the number are like all typed one on top of another
I use the following code
chart.Axis.Y2.Visible = True chart.Axis.Y2.RangeType = AxisRangeType.Custom chart.Axis.Y2.RangeMin = 0 chart.Axis.Y2.Labels.Visible = True chart.Axis.Y2.Labels.SeriesLabels.Visible = True chart.Axis.Y2.RangeMax = GetMaxValue(dt, tableauBordGraphique.ColonnePoury2) chart.Axis.Y2.TickmarkStyle = AxisTickStyle.Smart
Like I said, it works on 2D charts, not on 3D
End If