mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update jokob-sk graph_online_history.js
Depending on how many devices are contained in the list, the y-axis may contain floating point numbers. This does not make sense.
This commit is contained in:
@@ -2,6 +2,7 @@ function pia_draw_graph_online_history(pia_js_graph_online_history_time, pia_js_
|
|||||||
var xValues = pia_js_graph_online_history_time;
|
var xValues = pia_js_graph_online_history_time;
|
||||||
new Chart("OnlineChart", {
|
new Chart("OnlineChart", {
|
||||||
type: "bar",
|
type: "bar",
|
||||||
|
scaleIntegersOnly: true,
|
||||||
data: {
|
data: {
|
||||||
labels: xValues,
|
labels: xValues,
|
||||||
datasets: [{
|
datasets: [{
|
||||||
|
|||||||
Reference in New Issue
Block a user