SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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.
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?
Thank you for your enquiry! We recently updated the documentation on the SciChartLegend API.
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.
Please login first to submit.