Adjust chartjs linkQuality graph

This commit is contained in:
billz 2019-11-03 17:02:45 +00:00
parent 0b9f7d232e
commit 8f9d494437
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,4 @@
// Link quality gauge for ChartJS
// console.log(linkQ);
// Support for dark terminal theme
theme = getCookie('theme');
@ -27,6 +26,7 @@ let config = {
type: 'doughnut',
data: data1,
options: {
aspectRatio: 2,
responsive: true,
tooltips: {enabled: false},
hover: {mode: null},

View file

@ -38,7 +38,7 @@ $ifaceStatus = $wlan0up ? "up" : "down";
<div class="info-item"><?php echo _("Frequency"); ?></div><div><?php echo htmlspecialchars($frequency, ENT_QUOTES); ?></div>
<div class="info-item"><?php echo _("Link Quality"); ?></div>
<script>var linkQ = <?php echo json_encode($strLinkQuality); ?>;</script>
<div class="chart-pie pt-5">
<div class="chart-container">
<canvas id="canvas" class="chartjs-render-monitor"></canvas>
</div>
</div><!-- /.card-body -->