Filtering and stacked bar

5 posts, 0 answers
  1. Biruh MEKONNEN
    Biruh MEKONNEN avatar
    23 posts
    Member since:
    Apr 2010

    Posted 09 Feb 2011 Link to this post

    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.
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 11 Feb 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Biruh MEKONNEN
    Biruh MEKONNEN avatar
    23 posts
    Member since:
    Apr 2010

    Posted 11 Feb 2011 Link to this post

    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.
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 15 Feb 2011 Link to this post

    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>>
  6. alizator
    alizator avatar
    12 posts
    Member since:
    Oct 2011

    Posted 12 Mar 2012 Link to this post

    Hello,

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

    Thank You!
Back to Top
DevCraft banner