There is a chart with several series. There is a button that makes some of them visible / invisible ( Visible := False ).

In the chart, as I understand it, this feature is built out of the box: when you hover the mouse over a series, its legend is highlighted in red. But, when part of the series is hidden, this feature works incorrectly, it seems to be also invisible.

For example, three series, the second invisible. Directing on the first - highlights the first legend, directs on the third - highlights the second legend, but since it is invisible, the result is a bit predictable.

How can this be corrected? Is there a property that controls this in the chart?

Edit: I Series.Clicked that it is possible to check Series.Clicked in each series in MouseMove , and manually change the color of the corresponding legend, but how will this affect the performance if there are tens / hundreds of episodes in each hundred / thousand points. Well, how to cut down the standard highlighting is still unclear.

    1 answer 1

    Chart1.Legend.Selected.Hover.Visible := False

    • And can you tell me about the optimality of checking all Series.Clicked constantly? With one it looks expensive, but on the other, in the standard implementation, probably the same was done about it - Andrei
    • For long episodes it is expensive, of course, but in any case they slow down (when I last (long) saw the source code, everything that could be brute force was recalculated for every sneeze). How inside is done with clicked - I do not know. - MBo