This is a migrated thread and some comments may be shown as answers.

Labelling the x-axis on a report chart

1 Answer 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Johnny McAvoy
Top achievements
Rank 1
Johnny McAvoy asked on 18 Dec 2008, 02:26 PM
Hi,
I'm trying to change the default x-axis label on a bar chart that I have in my report. I'm trying to do it in the code behind (C#). At the moment the label is defaulting to the row number from my dataset, I wan't it to be the value in one of my columns.
I have created an SQLAdapter on the desing page and then in the code behind I pass ain a parameter, create my dataset and then fill it with the adapter. A
I've tried creating a Telerik.Reporting.Charting.AxisLabel and then adding it to my chart but i get read only errors. I've also tried 

 

Telerik.Reporting.Processing.

Chart myChart = (Telerik.Reporting.Processing.Chart)sender; in my needdatasource event, then doing myChart.PlotArea....... but again I've had no success!
I've been using telerik asp.net controls for a while but I'm new to reporting and I'm finding it a bit tricky - any pointers would be greatly appreciated.
Cheers,
Johnny

 

1 Answer, 1 is accepted

Sort by
0
Johnny McAvoy
Top achievements
Rank 1
answered on 19 Dec 2008, 08:39 AM
I've sorted this out by setting AutoScale to false.
Tags
General Discussions
Asked by
Johnny McAvoy
Top achievements
Rank 1
Answers by
Johnny McAvoy
Top achievements
Rank 1
Share this question
or