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

Bar overlap each other when the number is large

1 Answer 34 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Haidong
Top achievements
Rank 1
Haidong asked on 17 Mar 2012, 03:35 PM
I met 3 problems when I use RadChart
    1. My x-asix is DateTime type, after I bind it to the Chart, it always give me a buffer which is some date in the future(please see picture in the attached file), I really don't need to display them.
    2. What the IsDateTime property is used for, as mentioned above my x-axis is DateTime, in this case shall I still set IsDateTime to true explicitly? I tried to turn it on and off to figure it out, but didn't see the difference.
    3. I am using BarSeriesDefinition, but when the number of data is large, the width of bar become too wide and overlap each other. I attached a picture to show my problem.

Could someone help me?

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 20 Mar 2012, 11:16 AM
Hi Haidong,

1. This is caused by the Step of your axis. It sets a MinValue, MaxValue and Step according to your data so that all series items are fully visible. If you want to change the default settings you should turn the AutoRange property off and provide your own values for the mentioned axis properties. You can read more about this in our help topic.

2. When you have a DataPoint.XValue of type OLE Automation dates (double), but you want them converted to DateTime, you should set the IsDateTime property to True. This is described in more details in this help topic.

3. I believe that this will be solved with manual axis range as described in 1.

All the best,
Evgenia
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Chart
Asked by
Haidong
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or