I'm having difficulty adding text labels to my bar chart. I have a set of 7 set values I would like to put on the x axis but am unable to do so.
Any help would be much appreciated.
I'm using c# and vs 2005.
Thanks!
Nick
X axis Text labels
Re: X axis Text labels
Hi Nick,
You could use the override of the Add method that accepts labels. For example:
You could use the override of the Add method that accepts labels. For example:
Code: Select all
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
Random r = new Random();
for (int i = 0; i < 5; i++)
{
bar1.Add(r.Next(), "bar nº" + i.ToString());
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: X axis Text labels
Thanks a lot!
Worked like a charm.
Regards,
Nick
Worked like a charm.
Regards,
Nick