Pre loader

How to Create Custom Legend that shows HorizontalLineAnnotation Values

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi guys,

Related with my previous question: how do I add the anottation lines to the chart legend? It seems it only gives me options about the data series, nothing else…

Thanks

  • You must to post comments
1
0

Hi Jose,

It isn’t possible to do this natively, however the LegendControl is just an ItemsControl with DataTemplate that binds to a collection of SeriesInfo objects provided by LegendModifier, so should be easy to create a custom legend.

Take a look at the hierarchy of the LegendControl with a visual debugger, e.g. WPF Snoop. Also check out SeriesInfo in the API documentation so you can see the available properties.

Also take a look at this thread which talks about custom legends and includes the ControlTemplate for the LegendControl.

Hope this helps!

Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies