Skip to content

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

Merged
beto-rodriguez merged 1 commit into
Live-Charts:devfrom
bsilvia:bug/1489-custom-legend
Sep 11, 2024
Merged

PieChart (and PolarChart) custom legend support (#1489)#1573
beto-rodriguez merged 1 commit into
Live-Charts:devfrom
bsilvia:bug/1489-custom-legend

Conversation

@bsilvia

@bsilvia bsilvia commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

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 Live-Charts#1489)

@nadav26740 nadav26740 left a comment

Copy link
Copy Markdown

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
Copy Markdown
Collaborator

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

@beto-rodriguez
beto-rodriguez merged commit daa6224 into Live-Charts:dev Sep 11, 2024
@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