Skip to content
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

PieChart (and PolarChart) custom legend support (#1489) #1573

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

bsilvia
Copy link
Contributor

@bsilvia bsilvia commented Aug 22, 2024

Fixes #1489

The default legend assignment in InitializeCore was overwriting the user-provided legend. Moving this to the constructor, similar to how the tooltip is managed, yields the desired results.

Example using the Custom Legend example in the WPFSample project:

Before:
image

image

After:
image

image

…ot overriding the legend in the InitializeCore method (Fixes beto-rodriguez#1489)
Copy link

@nadav26740 nadav26740 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good and it's seems like there has been no actual reason for it to be reinitialized

@beto-rodriguez
Copy link
Owner

Thaks for the PR! I missed that in #859!!

@beto-rodriguez beto-rodriguez merged commit daa6224 into beto-rodriguez:dev Sep 11, 2024
2 of 4 checks passed
@bsilvia bsilvia deleted the bug/1489-custom-legend branch September 13, 2024 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants