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

Series color change not reflected in legend #365

Closed
RealityStop opened this issue Jan 13, 2022 · 1 comment
Closed

Series color change not reflected in legend #365

RealityStop opened this issue Jan 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@RealityStop
Copy link

Describe the bug
I'm using a Cartesian Chart with numerous series that support user customization of color through outside controls. When I change the color of a LineSeries's Stroke, the chart updates the line color, but not the "preview" ball in the legend.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Cartesian Chart with a legend and a LineSeries.
  2. Change the Stroke color of the series at some time after the things have initialized and drawn.
  3. Observe that the legend still shows the old color in the preview ball.

Expected behavior
Either the legend should automatically update when a Stroke color is changed, or a call could be made to manually synchronize.

Screenshots
Note the line has updated to be cyan, but the legend still has the red preview.
image

Windows 10
WPF (Skia)

@beto-rodriguez beto-rodriguez added the bug Something isn't working label Jan 15, 2022
beto-rodriguez added a commit that referenced this issue Sep 1, 2022
@beto-rodriguez
Copy link
Owner

Thanks for the report, now the library is able to detect when a paint changed with the referenced commit and will be included in the next release of the library.

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

2 participants