mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-08-23 14:16:48 +00:00
* rename 'error' to 'danger' * update dashboard * fix docs * update deploy configs
24 lines
511 B
JavaScript
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,
|
|
},
|
|
}
|
|
});
|
|
});
|