mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix for alert graph not showing
This commit is contained in:
@@ -74,25 +74,19 @@ foreach ($groups as $group) {
|
||||
var dataset = new vis.DataSet(items);
|
||||
var options = {
|
||||
style:'bar',
|
||||
barChart: {width:50, align:'right',handleOverlap:'sideBySide'}, // align: left, center, right
|
||||
barChart: { width:50, align:'right', sideBySide:true}, // align: left, center, right
|
||||
drawPoints: false,
|
||||
legend: {left:{position:"bottom-left"}},
|
||||
dataAxis: {
|
||||
icons:true,
|
||||
showMajorLabels: true,
|
||||
showMinorLabels: true,
|
||||
customRange: {
|
||||
left: {
|
||||
min: 0, max: <?php
|
||||
echo $max_count; ?>
|
||||
}
|
||||
}
|
||||
},
|
||||
zoomMin: 86400, //24hrs
|
||||
zoomMax: <?php
|
||||
$first_date = reset($data);
|
||||
$last_date = end($data);
|
||||
$milisec_diff = abs(strtotime($first_date[x]) - strtotime($last_date[x])) * 1000;
|
||||
$milisec_diff = abs(strtotime($first_date["x"]) - strtotime($last_date["x"])) * 1000;
|
||||
echo $milisec_diff;
|
||||
?>,
|
||||
orientation:'top'
|
||||
|
1
html/js/vis.min.js
vendored
1
html/js/vis.min.js
vendored
@@ -1 +0,0 @@
|
||||
../../lib/vis/dist/vis.min.js
|
45
html/js/vis.min.js
vendored
Normal file
45
html/js/vis.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
lib/vis/dist/vis.min.css
vendored
2
lib/vis/dist/vis.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user