Any way to set the width of bars individually?

2 posts, 0 answers
  1. Steve
    Steve avatar
    40 posts
    Member since:
    May 2014

    Posted 12 May Link to this post

    Are there any properties on a BarPointElement, for example, that I can use to set the width of any given bar in a series separately from the others?


    I already know how to get to the the point element to do formatting, just don't know what to set to get what I want. Kind of like the gap with but individually, not for the whole axis...

  2. Hristo Merdjanov
    Hristo Merdjanov avatar
    664 posts

    Posted 16 May Link to this post

    Hi Steve,

    Thank you for writing.

    RadChartView is a highly customizable control exposing API for drawing custom point elements. In order to achieve your task, you would need to paint a custom BarSeriesDrawPart . You can perform a validation for each of the data points and depending on your logic change the element`s width or height.

    Detailed information on how the API is working is available here: Custom Rendering. I am also sending you attached a sample project which I believe should get you going. 

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top