How to handle short bars in bar chart

4 posts, 0 answers
  1. Eric
    Eric avatar
    14 posts
    Member since:
    Jun 2012

    Posted 08 Nov 2011 Link to this post

    I've got a bar chart in which some of the bars are very short, so short I can't click on them, how are you guys handling this issue?
  2. Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 12 Nov 2011 Link to this post

    Hello Eric,

    You may consider using a logarithmic Y axis scale, in case you have data with a big range. This way there would not be any bars that are too small and the visual representation of the data would be much clearer as well. You can find more information on the feature in this help topic and also in our Logarithmic Scale demo example.

    All the best,
    Nikolay
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Eric
    Eric avatar
    14 posts
    Member since:
    Jun 2012

    Posted 14 Nov 2011 Link to this post

    I'll look at the logarithmic scale. 

    Is it possible to make the chart labels clickable so they have the same behavior as clicking on the bar?
  5. Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 17 Nov 2011 Link to this post

    Hi Eric,

    Yes, it is possible to make the item labels clickable. You would have to create a style for the SeriesItemLabel that sets the IsHitTestVisible property to true. This approach is demonstrated in the attached application.

    Hope this helps.

    All the best,
    Nikolay
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top