Legend Bug when visibility is set to 'Collapsed'

2 posts, 0 answers
  1. Adam
    Adam avatar
    1 posts
    Member since:
    Jun 2011

    Posted 29 Nov 2011 Link to this post

    I am having the bug that is being referenced by the user in the following thread:

    The prescribed work around is to follow the example here:

    However, in my experience the bug is only present when using Visibility.Collapsed (ie Visibility.Hidden works fine), and the example uses Visibility.Hidden.  I need to use Visibility.Collapse since some of my series have disparate magnitudes and I want the chart to be redrawn to show the data with a Y-Axis magnitude that matches the series being shown (the behavior provided by Visibility.Collapse).

    When collapsing a series earlier in the list of series, all series after it are redrawn with a different color.  The auto-generated legend isn't updated to match the new color.  However, I can still hover over the legend item and hover effects are applied to the proper series despite the fact that the legend and the corresponding series are different colors.  I believe this to be a bug.  Is there a work around (aside from drawing all the legend items myself)?
  2. Sia
    Sia avatar
    756 posts

    Posted 02 Dec 2011 Link to this post

    Hi Adam,

    If you need to preserve the series colors what I can suggest is to use the exposed Appearance API. In that way if you collapse the first series , all other series will keep their color.

    the Telerik team

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

Back to Top