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

Pie Chart color and legends do not match #161

Open
vaithu opened this issue Mar 10, 2023 · 0 comments
Open

Pie Chart color and legends do not match #161

vaithu opened this issue Mar 10, 2023 · 0 comments
Labels
bug Something isn't working will accept PR

Comments

@vaithu
Copy link

vaithu commented Mar 10, 2023

Describe the bug
The colors of the piechart and legend colors are not matching

Steps or code example to Reproduce

 withChart(ChartBuilder.get().withType(Type.PIE).build())
                .withLabels("Successes", "Failures")
                .withLegend(LegendBuilder.get()
                        .withPosition(Position.RIGHT)
                        .build())
                .withSeries(series.toArray(new Double[0]))
                .withColors("green","red")
                .build()

Expected behavior
This chart would get two colors Green for Success and Red for Failures. The legend and pie charts colors should match

Screenshots
image

Desktop (please complete the following information):

  • OS: Any
  • Browser : Any
  • Version [e.g. 23]
@vaithu vaithu added the bug Something isn't working label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working will accept PR
Projects
None yet
Development

No branches or pull requests

2 participants