fix for alert graph not showing

This commit is contained in:
crcro
2016-09-18 15:26:44 +03:00
parent 45e41ad02e
commit 245a1fe015
3 changed files with 48 additions and 10 deletions

View File

@@ -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
View File

@@ -1 +0,0 @@
../../lib/vis/dist/vis.min.js

45
html/js/vis.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long