Fixed donut formatting and removed top chart legend

This commit is contained in:
nolan 2025-05-30 15:41:32 -04:00
parent e91d8c0f86
commit 40cbaed310
3 changed files with 18 additions and 6 deletions

View File

@ -189,6 +189,14 @@ canvas{
position: static;
float: right;
}
.donut{
width: 60%;
padding: 0px;
margin: auto;
/* display: inline-block; */
margin-left: -5%;
margin-right: -5%;
}
#brightness{
flex-basis: 0%;

View File

@ -55,6 +55,9 @@ window.addEventListener("load", async function () {
},
animation:{
duration: 0
},
legend:{
display: false
}
}
});
@ -70,9 +73,10 @@ window.addEventListener("load", async function () {
data: data,
borderColor: colors[i - 1],
fill: false,
pointRadius: 0
pointRadius: 0,
borderWidth: 2.
}
)
);
}
threads = new Chart("threads", {

View File

@ -28,10 +28,10 @@
<br>
<canvas id="threads"></canvas>
<br>
<span class="hflex">
<canvas id="ram"></canvas>
<canvas id="swap"></canvas>
</span>
<div class="center-flex">
<canvas class="donut" id="ram"></canvas>
<canvas class="donut" id="swap"></canvas>
</div>
<br>
</div>
<br>