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

Filtering and stacked bar

4 Answers 100 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Biruh MEKONNEN
Top achievements
Rank 1
Biruh MEKONNEN asked on 09 Feb 2011, 02:59 PM
Hi,

I checked the filtering feature here:
http://demos.telerik.com/silverlight/#Chart/SimpleFiltering

It is quite nice. However, I wanted to apply this with stacked bar.
It's working but not in the way I want.

Imagine you have a Bar B1 and a Bar B2 on top of B1. If I filter B1, I would like B1 to disappear and B2 to start at the former location of B1. I just want all the bars which are on top of the filtered bar to go down and not to stay at the same place. I hope I was clear enough. I tried to change hidden by collapsed, but it does not seem to work.

So, is it possible to do something like that without rebinding?

Thanks.

4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Feb 2011, 08:28 AM
Hi Biruh,

With the newest version of the control, the requested behavior is achievable. You can use code like the following:

RadChart1.DefaultView.ChartArea.DataSeries[0].Definition.Visibility = SeriesVisibility.Collapsed;

to set the visibility to collapsed. The control will internally rebind and span the rest of the series to occupy the space vacated by the first series, which was hidden.
I hope this information helps.

Greetings,
Yavor
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Biruh MEKONNEN
Top achievements
Rank 1
answered on 11 Feb 2011, 12:19 PM
Hi,

thanks for your answer, I think I downloaded the last version 2010.3.1407.1040.

In fact I have some stacked bar series like in the pic. I have two stacked group names.

By replacing hidden by collapsed,
I have then difficulties to check or uncheck. The checkbox is still checked.
After the corresponding series is sometime collapsed, but the colors between the legends and the series are not matching anymore.
0
Yavor
Telerik team
answered on 15 Feb 2011, 10:37 AM
Hi Biruh,

The behavior of the series should be consistent, when hidden. Based on the supplied information, it is hard to determine why the series are not properly correlated with the checkbox. If the issue persists, you can open a formal support ticket, and send us a small working project, incorporating your logic, and showing the unwanted behavior. We will debug it locally, and advise you further.

Regards,
Yavor
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
alizator
Top achievements
Rank 1
answered on 12 Mar 2012, 05:17 PM
Hello,

What was the solution for this issue I have the same problem.

Thank You!
Tags
Chart
Asked by
Biruh MEKONNEN
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Biruh MEKONNEN
Top achievements
Rank 1
alizator
Top achievements
Rank 1
Share this question
or