This is a migrated thread and some comments may be shown as answers.
Bars Radchart
7 Answers 80 Views
This is a migrated thread and some comments may be shown as answers.
Grtjn
Top achievements
Rank 1
Grtjn asked on 08 Mar 2010, 10:55 AM
Hi,

My question is if it is possible that you stop bars to adjust themselves.
To explain this:
When I have 3 values in a chart, i get those wide bars.
When there are 10 values, i get smaller ones.
When i put + 20 values, the bars overlay.

I have to have 24 values in a chart and i want them to be small and not touching eachother.

Plz help!

Kind regards,

Gj

7 Answers, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 10 Mar 2010, 04:34 PM
Hello GJ DM,

By default, the bar items will not touch or overlap if the ChartArea.ItemWidthPercent property value is less than 100.The chart control divides the available space in equal parts and each bar is placed inside the corresponding part. Then the ChartArea.ItemWidthPercent property value is applied to adjust the actual width of the bar(it defaults to 80 percents of the space).

The width of the bars is dynamically calculated based on the available space and you can not set it as a hard coded value.  


Best wishes,
Velin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
ErrolM
Top achievements
Rank 1
answered on 23 Apr 2010, 03:57 AM
Hello Velin,

I find that the bars do indeed overlap with the default of 80 as shown in the attached screenshots.
Is there another property that affects this calculation?

Thanks,
Errol

0
Velin
Telerik team
answered on 28 Apr 2010, 08:44 AM
Hello Errol Melvin,

Please, provide some more details on the way you have set up the chart control and the version of the Telerik assemblies you use. Source code will be highly appreciated. Thanks.

Regards,
Velin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
David Glass
Top achievements
Rank 1
answered on 29 Apr 2010, 12:24 AM
this sounds like the same bug I reported in Bug Report # 295132.

One approach (though not ideal) is to set the TicksDistance of AxisX to 1.  My approach was to use XCategories instead of XValues and to pad any missing slots with zeros.
0
Lian
Top achievements
Rank 1
answered on 30 Jun 2010, 01:53 PM
I have the same problem. Has this been resolved?
0
Velin
Telerik team
answered on 05 Jul 2010, 05:58 PM
Hi Lian,

We suggest you to try tweaking the bars width using the ChartArea.ItemWidthPercent. In case you don't have success with this we would ask you to send us more details for the way you've set up the chart control in order to be able to investigate and provide a solution. Thanks.

All the best,
Velin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lian
Top achievements
Rank 1
answered on 06 Jul 2010, 08:00 AM
I believe this has been fixed in the latest Q2 beta release.
Tags
Chart
Asked by
Grtjn
Top achievements
Rank 1
Answers by
Velin
Telerik team
ErrolM
Top achievements
Rank 1
David Glass
Top achievements
Rank 1
Lian
Top achievements
Rank 1
Share this question
or