Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upScatter Chart displays WRONG COLOR for each point #4571
Comments
|
I ve found out that its However, it has not been fixed. |
SpencerHowell
added a commit
to SpencerHowell/MPAndroidChart
that referenced
this issue
Aug 7, 2019
Closes PhilJay#4571 and closes PhilJay#4483 When setting colors for each entry of a dataSet, this code was skipping every odd color value. This resulted in only half of the colors being applied, with the other half of points getting duplicate values. When trying to set custom colors for each point, this presented an issue.
SpencerHowell
linked a pull request that will
close
this issue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Refer to the code below, the colors of points shown on the scatter chart is not equal to the color list, ColorTemplate.MATERIAL_COLORS.
For Example,
while ColorTemplate.MATERIAL_COLORS = [a, b, c, d]
the chart displayed points with colors, [a, a, b, b]
To workaround that, I have override your ScatterDataSet class as shown below.
Then, the colors is displayed as I expected, [a, b, c, d]
I hope you can fix this bug. Thank you!