-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack Overflow error when trying to draw Legend #637
Comments
Found that the issue is in the Measure method of CartesianChart.cs in LiveChartsCore.
The check One way to fix is to do:
|
Thanks for the report and the fix. it works! this is fixed with the referenced commit and will be included in the next version of the library. |
Describe the bug
WPF - using CartesianChart.
When the Legend is visible and any series has IsVisibleAtLegend = false, we get a stack overflow and crash.
Note that a PieChart works as expected with some series having IsVisibleAtLegend = fasle.
To Reproduce
Steps to reproduce the behavior:
WPF - using CartesianChart. LegendPosition is anything other than Hidden
Add a couple of series (e.g. Line Series, Scatter Series, Column Series)
In one of them, set IsVisibleAtLegend = false
When trying to draw the chart, a StackOverflowError occurs
Expected behavior
Legend draws properly
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: