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

Legend Bug when visibility is set to 'Collapsed'

1 Answer 32 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 29 Nov 2011, 10:50 PM
I am having the bug that is being referenced by the user in the following thread:
http://www.telerik.com/community/forums/silverlight/chart/changing-visibility-of-series.aspx

The prescribed work around is to follow the example here:
http://demos.telerik.com/silverlight/#Chart/SimpleFiltering

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)?

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 02 Dec 2011, 12:59 PM
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.

Greetings,
Sia
the Telerik team

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

Tags
Chart
Asked by
Adam
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or