SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

1
0

I have a chart with multiple dataseries, with each dataseries having annotations on top (like in the Trade Markers example). I have a legend which already shows or hides dataseries using a checkbox, but how can I make this checkbox also show or hide the annotations for that dataseries? Can I hook an event when this checkbox is triggered, or when the dataseries visibility changes?

  • You must to post comments
0
0

Hi Robert,

The Legend Checkbox is bound two way to RenderableSeries.IsVisible. We have a tutorial here which walks thorugh some extreme legend customization, including reacting to legend checkbox click and adding additional properties to the legend.

Tutorial – Custom Legend with Color Picker and Custom Point Markers

SciChart Legend Customization ControlTemplate

Does this help?

Also, please see additional docs for legend templating here.

Best regards,
Andrew

  • Robert Evans
    Thanks for the quick response Andrew.In the end I wrote a handler for the RenderableSeries.IsVisibleChanged event, which is called whenever the legend checkbox is clicked on. The handler sets the relevant annotations' "IsHidden" property to be the inverse of RenderableSeries.IsVisible.
  • Andrew
    Awesome, glad you got a solution!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.