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

Bar Chart XAxis Step and MaxValue

3 Answers 96 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sperduti
Top achievements
Rank 1
Sperduti asked on 03 Dec 2007, 10:16 AM
Hi,

I use Bar Chart and I bind data with DataTable.
I see if my value is, for example, 20, my bar chart max value is 20 too and the bar is dock one the right of my plotarea.
In this case, can I add just one more step to obtain space between my bar and my plotarea border ? Or change my maxValue ? I try several things but there is no effect.

Thanks,

YSP

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 06 Dec 2007, 05:33 PM
Thank you for contacting us, Sperduti.

Setting AxisMode to Extended will force the chart to set a max value greater than the maximum one in the series. This way there will always be some space on top:
 
radChart1.PlotArea.YAxis.AxisMode = Telerik.Charting.ChartYAxisMode.Extended; 
 
 
Note:
This will only work when the YAxis.AutoSize mode is true.

 
Best wishes,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sperduti
Top achievements
Rank 1
answered on 10 Dec 2007, 01:16 PM
Thanks, that work correctly.
I think  you mean Yaxis.AutoScale, because I don't find AutoSize.

Regards,

YSP
0
Dwight
Telerik team
answered on 10 Dec 2007, 02:35 PM
Hi Sperduti,

We are glad to help. Should you experience any other difficulties using our controls, do not hesitate to contact us. Any suggestions that could help the controls' usability is also appreciated.

 
Best regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (obsolete as of Q1 2013)
Asked by
Sperduti
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Sperduti
Top achievements
Rank 1
Share this question
or