mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Unique id, prevent conflict w/ data usage
This commit is contained in:
parent
9dc2a67d70
commit
d15fd5692d
3 changed files with 4 additions and 4 deletions
|
@ -201,7 +201,7 @@ pre.unstyled {
|
|||
font-size: 0.9rem!important;
|
||||
}
|
||||
|
||||
canvas#divChartBandwidthhourly {
|
||||
canvas#divDBChartBandwidthhourly {
|
||||
height: 350px!important;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
function ShowBandwidthChartHandler(e) {
|
||||
// Remove hourly chartjs chart
|
||||
$('#divChartBandwidthhourly').empty();
|
||||
$('#divDBChartBandwidthhourly').empty();
|
||||
// Construct ajax uri for getting the proper data
|
||||
var timeunit = 'hourly';
|
||||
var uri = 'ajax/bandwidth/get_bandwidth.php?';
|
||||
|
@ -62,7 +62,7 @@
|
|||
return e.date;
|
||||
});
|
||||
// Init. chart with label series
|
||||
var barchart = CreateChart('divChartBandwidth'+timeunit, labels);
|
||||
var barchart = CreateChart('divDBChartBandwidth'+timeunit, labels);
|
||||
var dataRx = jsondata.map(function(e) {
|
||||
return e.rx;
|
||||
});
|
||||
|
|
|
@ -34,7 +34,7 @@ $ifaceStatus = $wlan0up ? "up" : "down";
|
|||
<h4><?php echo _("Hourly traffic amount"); ?></h4>
|
||||
<div id="divInterface" class="d-none"><?php echo RASPI_WIFI_CLIENT_INTERFACE; ?></div>
|
||||
<div class="col-md-12">
|
||||
<canvas id="divChartBandwidthhourly"></canvas>
|
||||
<canvas id="divDBChartBandwidthhourly"></canvas>
|
||||
</div>
|
||||
</div><!-- /.card-body -->
|
||||
</div><!-- /.card-->
|
||||
|
|
Loading…
Reference in a new issue