mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Adjust chartjs linkQuality graph
This commit is contained in:
parent
0b9f7d232e
commit
8f9d494437
2 changed files with 2 additions and 2 deletions
|
@ -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},
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Reference in a new issue