Pre loader

LegendModifier scroll overflow

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


I have a case where there can be hundreds or even thousands of potential series on the surface.
When I use the LegendModifier, I only see the first 20 or so series.
What would it take to display a scrollbar so that the user can see all available series?

  • You must to post comments
Best Answer

Hi Dan,

Thank you for your enquiry! We recently updated the documentation on the SciChartLegend API.

enter image description here

The actual SciChartLegend control as well as the LegendModifier class accept the ScrollViewer.VerticalScrollBarVisibility property, as you can see below:

If you are using LegendModifier with ShowLegend=True

Then you can set ScrollViewer.VerticalScrollBarVisibility directly on the LegendModifier, and the internally created legend will pick this up.

<!-- When using ShowLegend=True, you can set ScrollViewer visibility as follows -->
<s:LegendModifier x:Name="legendModifier" LegendPlacement="Inside" ShowLegend="True"

If you are displaying a separate SciChartLegend control

Then you can set ScrollViewer.VerticalScrollBarVisibility directly on the SciChartLegend control

Creating a Custom Control Template (Advanced)

For more advanced control over the legend output, you can apply a custom Control Template to the SciChartLegend. It’s a very simple control template, you can modify the scrollviewer directly. Have a look at the documentation on the SciChartLegend API for more advanced scenarios like templating the legend, or legend row templates.

Best regards,

  • 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