Skip to content

Commit

Permalink
Add missing border color changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eurunuela committed Oct 1, 2021
1 parent c95b77c commit db196ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,21 @@ function resetColors(data, isPie) {
data.datasets[0].backgroundColor[i] = acceptedColor;
} else {
data.datasets[0].pointBackgroundColor[i] = acceptedColor;
data.datasets[0].pointBorderColor[i] = acceptedColor;
}
} else if (data.datasets[0].classification[i] === "rejected") {
if (isPie) {
data.datasets[0].backgroundColor[i] = rejedtecColor;
} else {
data.datasets[0].pointBackgroundColor[i] = rejedtecColor;
data.datasets[0].pointBorderColor[i] = rejedtecColor;
}
} else if (data.datasets[0].classification[i] === "ignored") {
if (isPie) {
data.datasets[0].backgroundColor[i] = ignoredColor;
} else {
data.datasets[0].pointBackgroundColor[i] = ignoredColor;
data.datasets[0].pointBorderColor[i] = ignoredColor;
}
}
}
Expand Down

0 comments on commit db196ce

Please sign in to comment.