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

Closed
kajsa-work opened this issue Apr 17, 2024 · 1 comment
Closed

PieChart doesn't show custom legend #1489

kajsa-work opened this issue Apr 17, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

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

@bsilvia
Copy link
Contributor

bsilvia commented Aug 22, 2024

This is related to #985 and was partially fixed with #859 for the CartesianChart control but not the PieChart or PolarChart controls.

beto-rodriguez added a commit that referenced this issue Sep 11, 2024
PieChart (and PolarChart) custom legend support (#1489)
@beto-rodriguez beto-rodriguez added the bug Something isn't working label Sep 13, 2024
@beto-rodriguez beto-rodriguez added this to the rc-3 milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants