0

enter image description here

The AxisX title is "Date". But how can I change its direction? I would like to see "Date" horizontally.

The AxisX Labels direction is set like this:

chartCalls.ChartAreas[0].AxisX.LabelStyle.Angle = -90;

Any idea?

aleafonso
  • 2,244
  • 8
  • 38
  • 58

2 Answers2

0

Probably you need to add MyChart.Series[0].SmartLabelStyle.Enabled = false;

Ravi Vanapalli
  • 9,805
  • 3
  • 33
  • 43
  • Thanks for your response. I've just tried that and it doesn't solve my issue. In addition, I don't think this is particularly related to the "Series" but to the "Chart" – aleafonso Aug 20 '12 at 14:32
0

Put TextAlign="Horizontal" like this

   <AxisX Title="" LineColor="green" LineWidth="3" TextOrientation="Horizontal">
                                                <MajorGrid Enabled="False" />
                                            </AxisX>
Chenthil
  • 296
  • 4
  • 9