mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Adjust chartjs linkQuality graph
This commit is contained in:
parent
0b9f7d232e
commit
8f9d494437
@ -1,5 +1,4 @@
|
|||||||
// Link quality gauge for ChartJS
|
// Link quality gauge for ChartJS
|
||||||
// console.log(linkQ);
|
|
||||||
|
|
||||||
// Support for dark terminal theme
|
// Support for dark terminal theme
|
||||||
theme = getCookie('theme');
|
theme = getCookie('theme');
|
||||||
@ -27,6 +26,7 @@ let config = {
|
|||||||
type: 'doughnut',
|
type: 'doughnut',
|
||||||
data: data1,
|
data: data1,
|
||||||
options: {
|
options: {
|
||||||
|
aspectRatio: 2,
|
||||||
responsive: true,
|
responsive: true,
|
||||||
tooltips: {enabled: false},
|
tooltips: {enabled: false},
|
||||||
hover: {mode: null},
|
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 _("Frequency"); ?></div><div><?php echo htmlspecialchars($frequency, ENT_QUOTES); ?></div>
|
||||||
<div class="info-item"><?php echo _("Link Quality"); ?></div>
|
<div class="info-item"><?php echo _("Link Quality"); ?></div>
|
||||||
<script>var linkQ = <?php echo json_encode($strLinkQuality); ?>;</script>
|
<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>
|
<canvas id="canvas" class="chartjs-render-monitor"></canvas>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.card-body -->
|
</div><!-- /.card-body -->
|
||||||
|
Loading…
Reference in New Issue
Block a user