Files
Robert BrennanandGitHub 2ac6a2b540 Change error to danger (#299)
* rename 'error' to 'danger'

* update dashboard

* fix docs

* update deploy configs
2020-05-19 08:41:07 -04:00

24 lines
511 B
JavaScript

$(function () {
var clusterChart = new Chart("clusterScoreChart", {
type: 'doughnut',
data: {
labels: ["Passing", "Warning", "Error"],
datasets: [{
data: [
polarisSummary.Successes,
polarisSummary.Warnings,
polarisSummary.Dangers,
],
backgroundColor: ['#8BD2DC', '#f26c21', '#a11f4c'],
}]
},
options: {
responsive: false,
cutoutPercentage: 60,
legend: {
display: false,
},
}
});
});