Controlling the width of the datapoint plot area in RadCartesianChart
Hi
I am currently developing a simple bar chart showing a variable number of bar columns.
Now, I have used the PointTemplate property to set the bar columns at the same size regardless of the number of data points:
My problem is that when I have few data points I want the bar columns aligned to the left like this:
| **
| **
| **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
|__**__,__**__,______,______,
But the chart control always distributes the data point plot areas evenly across the control space like this.
| **
| **
| **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
|______**______,______**______,
I would really like to know how I can achieve the result on the top figure. How can I control the width of the plot area/container that holds the bar columns.
Either it must be totally obvious or it is simply not possible, as I cannot google my way to an answer.
Thanks
Claus
Hi
I am currently developing a simple bar chart showing a variable number of bar columns.
Now, I have used the PointTemplate property to set the bar columns at the same size regardless of the number of data points:
<
telerik:BarSeries.PointTemplate
>
<
DataTemplate
>
<
Grid
Width
=
"80"
>
<
Border
Background
=
"#FF817661"
CornerRadius
=
"5"
Margin
=
"23,5,23,0"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:BarSeries.PointTemplate
>
My problem is that when I have few data points I want the bar columns aligned to the left like this:
| **
| **
| **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
|__**__,__**__,______,______,
But the chart control always distributes the data point plot areas evenly across the control space like this.
| **
| **
| **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
| ** **
|______**______,______**______,
I would really like to know how I can achieve the result on the top figure. How can I control the width of the plot area/container that holds the bar columns.
Either it must be totally obvious or it is simply not possible, as I cannot google my way to an answer.
Thanks
Claus