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!

Answered
1
0

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?
Thanks!

  • You must to post comments
Best Answer
1
0

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"
        ScrollViewer.HorizontalScrollBarVisibility="Auto"
        ScrollViewer.VerticalScrollBarVisibility="Auto"/>

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,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.