Hide/Collapse Category in CategoricalAxis

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    37 posts
    Member since:
    Dec 2012

    Posted 17 Mar 2014 Link to this post

    I'm certain I've seen a forum post on this topic before but I've been unable to track it down again so sorry for any duplication. 

    I have a bar chart that shows several different series with one numerical and one categorical  axis. Is it possible to hide a category on the CategoricalAxis in a similar way that hiding series is possible, without have to rebuild the chart from scratch excluding the "hidden" data?


  2. Martin Ivanov
    Martin Ivanov avatar
    1442 posts

    Posted 20 Mar 2014 Link to this post

    Hello Andrew,

    Note that the RadCartesianChart will always allocate space for rendering a Category for its DataPoints which depends on the ItemsSource of the chart. This is why in order to hide or show category from your axis you will need to change the ItemsSource of the Series. For example you can remove an item from the ItemsSource, save it in a temp collection and then when you want this category back you can put the item back in the ItemsSource of the series.

    Let me know if this is your scenario. If not can you please describe it in more details. 


    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top