Bar overlap each other when the number is large

2 posts, 0 answers
  1. Haidong
    Haidong avatar
    6 posts
    Member since:
    Sep 2011

    Posted 17 Mar 2012 Link to this post

    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?

  2. Evgenia
    Evgenia avatar
    1396 posts

    Posted 20 Mar 2012 Link to this post

    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,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top