Set bar width!

Thread is closed for posting
9 posts, 0 answers
  1. Mark
    Mark avatar
    23 posts
    Member since:
    Apr 2007

    Posted 27 May 2008 Link to this post

    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)
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 27 May 2008 Link to this post

    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
  3. Mark
    Mark avatar
    23 posts
    Member since:
    Apr 2007

    Posted 27 May 2008 Link to this post

    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.
  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 27 May 2008 Link to this post

    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
  5. Mark
    Mark avatar
    23 posts
    Member since:
    Apr 2007

    Posted 28 May 2008 Link to this post

    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.
  6. Davy
    Davy avatar
    8 posts
    Member since:
    Jan 2008

    Posted 28 May 2008 Link to this post

    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
  7. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 28 May 2008 Link to this post

    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
  8. Christopher
    Christopher avatar
    2 posts
    Member since:
    Jun 2008

    Posted 11 Jun 2008 Link to this post

    Is there anyway to get notified when this fix is available, I too am encountering this problem.
  9. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 12 Jun 2008 Link to this post

    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
Back to Top