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 doesn't show custom legend #1489

Open
kajsa-work opened this issue Apr 17, 2024 · 0 comments
Open

PieChart doesn't show custom legend #1489

kajsa-work opened this issue Apr 17, 2024 · 0 comments

Comments

@kajsa-work
Copy link

Describe the bug
Custom legend is not applied to PieChart.

To Reproduce

  1. Create a custom legend using the guide: Custom legends.

  2. Add the legend to a cartesian chart as well as a pie chart:

<lvc:CartesianChart Series="{Binding Series}">
  <lvc:CartesianChart.Legend>
    <local:Legend/>
  </lvc:CartesianChart.Legend>
</lvc:CartesianChart>

<lvc:PieChart Series="{Binding Series2}">
  <lvc:PieChart.Legend>
    <local:Legend/>
  </lvc:PieChart.Legend>
</lvc:PieChart>
  1. The Cartesian chart will have the custom legend, but the Pie chart will have the default one.

Expected behavior
PieChart should have the same legend style as the cartesian chart

Screenshots
Skärmbild 2024-04-17 135339

Desktop (please complete the following information):
WPF, version 2.0.0-rc2

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

No branches or pull requests

1 participant