-
Notifications
You must be signed in to change notification settings - Fork 334
Closed
Labels
Description
Bug report
Describe the bug
When using Charts.pieChart() the colors of the chart match the colors for that class of objects. However, the colors of the legend do not match!
To Reproduce
Steps to reproduce the behavior:
- Run Positive cell detection on an image
- Use the following code to create a pie chart:
chartData = getDetectionObjects().countBy(p -> p.getPathClass())
Charts.pieChart()
.title('Test Chart')
.data(chartData)
.show()
Expected behavior
The colors of the legend shall match the colors of the pie.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- QuPath Version: Tested on v2.3 and the latest snapshot
Additional context
More details on the forum:
https://forum.image.sc/t/pie-chart-legend-colors/72051
Reactions are currently unavailable
