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

Set bar width!

8 Answers 162 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 27 May 2008, 08:19 AM
How can I set the width of all the bars in a large series to a certain #pixel???
(Since the series is large I get a huge overlapping of all the bars)

8 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 27 May 2008, 08:31 AM
Hello Mark,

You can customize the bar width via the BarOverLapPercent / BarWidthPercent properties as described here (note, however, that these are percentage values and not pixel ones).

Hope this helps.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark
Top achievements
Rank 1
answered on 27 May 2008, 08:56 AM
Hi Manuel,

I was just about to add that the BarWidthPercent property doesn't help since it reduces the bar to the left and shifts it so that it is not aligned with the x-axis ticks and lables. When I have a serie of over 100 points and reduce the BarWidthPercent to 2M I get a shift of over 7 points regarding the x-axis ticks.
Any ideas???

Thanks.
0
Giuseppe
Telerik team
answered on 27 May 2008, 10:24 AM
Hi Mark,

We are not quite sure what do you mean by the statement that BarWidthPercent reduces the bar to the left and causes mis-alignment of the chart elements -- are you applying any custom margins or settings to the chart elements? We have attached a sample application that demonstrates setting BarWidthPercent does not cause problematic behavior on its own.

Let us know if we are missing something out.


Greetings,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark
Top achievements
Rank 1
answered on 28 May 2008, 07:43 AM
Hi Manuel,

Thanks for the example, it helped me realize that the problem was that I entered XValue for every ChartSeriesItem in the serie. If you take the example you provided and give each ChartSeriesItem an XValue (simple ordered numbers from 0 to 36) you will see that the bars do not align with the ticks on the x-axis...

Thaks.
0
Davy
Top achievements
Rank 1
answered on 28 May 2008, 09:42 AM
This is an issue for me too since i am using datetime in the xaxis and want to add the bar at a specific time.

/Davy Wester
0
Ves
Telerik team
answered on 28 May 2008, 12:32 PM
Hello,

Indeed, this seems to be a bug in the control. Our developers are already aware of it and the fix should be in the next release.

Best regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christopher
Top achievements
Rank 1
answered on 11 Jun 2008, 04:33 PM
Is there anyway to get notified when this fix is available, I too am encountering this problem.
0
Ves
Telerik team
answered on 12 Jun 2008, 02:56 PM
Hello Christopher,

The fix will be included in RadControls for ASP.NET AJAX 2008 Q1 SP2, expected next week.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Mark
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Mark
Top achievements
Rank 1
Davy
Top achievements
Rank 1
Ves
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or