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; position: static;
float: right; float: right;
} }
.donut{
width: 60%;
padding: 0px;
margin: auto;
/* display: inline-block; */
margin-left: -5%;
margin-right: -5%;
}
#brightness{ #brightness{
flex-basis: 0%; flex-basis: 0%;

View File

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

View File

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