This is a migrated thread and some comments may be shown as answers.

Hide/Collapse Category in CategoricalAxis

1 Answer 103 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 17 Mar 2014, 04:24 PM
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?

Thanks,

Andy.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 20 Mar 2014, 02:06 PM
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. 

Regards,
Martin
Telerik
 

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.

 
 
Tags
ChartView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or