anjali Posted May 17, 2007 Report Share Posted May 17, 2007 Hi, I have a chart that has multiple panes. Since the legend for the data between the panes can be common we are using 'UserLegendBox' (Series Legend box repeats the common ones). But the proble with the 'UserLegendBox' is that it is independent of the data that is shown in the charts and hence when we move the mouse over the legend it does not highlight the corresponding series/bar/line in the chart. We have written code in the 'Highlighted' event of the chart control to highlight the all the series corresponding to the highlighted legend using the 'HighlightItem' in a for loop. But only one series gets highlighted. Am I missing something here. Is it possible to highlight multiple series across multiple pane. Here is the code... **************************************************************************************************************** If (TypeOf objMouseEventArgsX.Object Is SoftwareFX.ChartFX.UserLegendBox) Then 'Get the name of the legend that is highlighted objUserLegendBox = DirectCast(objMouseEventArgsX.Object, SoftwareFX.ChartFX.UserLegendBox) strLegendName = objUserLegendBox.Item(objMouseEventArgsX.Point).Label 'Highlight all the series that match the highlighted legend For intSeriesLegIndex As Integer = 0 To Series.Count If (SerLeg(intSeriesLegIndex) = strLegendName) Then objHighlightEventArgs = New SoftwareFX.ChartFX.Base.HighlightEventArgs With objHighlightEventArgs .Series = intSeriesLegIndex .Mode = Base.HighlightModes.Series End With Highlight.HighlightItem(Me, objHighlightEventArgs) Else End If Next intSeriesLegIndex Else End If **************************************************************************************************************** Thanks, Anjali Link to comment Share on other sites More sharing options...
Frank Posted May 17, 2007 Report Share Posted May 17, 2007 No. It is not possible to highlight multiple series. BoxplotMarkup.txt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.