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

How do i keep width independent of no. of items

1 Answer 35 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Amol
Top achievements
Rank 2
Amol asked on 06 Mar 2009, 12:13 PM
Hi All,

how do i keep width of the bar same independent of no. of items in the series of the chart.

So width will remain same for any no. of items.
because i think width of chart varies depending upon no. of items.


Thanks,
Amol

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 09 Mar 2009, 06:57 AM
Hello Amol,

The RadChart control utilizes the whole available space, thus creating bars with different with, depending on the range of the X-axis. By default the X-axis is in auto-scale mode, but you can switch it off and set your own range, which will fix the size of the bars:
this.radChart1.PlotArea.XAxis.AutoScale = false
this.radChart1.PlotArea.XAxis.IsZeroBased = false
this.radChart1.PlotArea.XAxis.AddRange(5, 25, 1); 

Regards,
Evtim
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
Amol
Top achievements
Rank 2
Answers by
Dwight
Telerik team
Share this question
or