Update vis
This commit is contained in:
@ -23,10 +23,8 @@ $(function() {
|
|||||||
groups = new vis.DataSet(buildChartGroups());
|
groups = new vis.DataSet(buildChartGroups());
|
||||||
graph = new vis.Graph2d(document.getElementById('graph'), dataset, groups, {
|
graph = new vis.Graph2d(document.getElementById('graph'), dataset, groups, {
|
||||||
dataAxis: {
|
dataAxis: {
|
||||||
customRange: {
|
|
||||||
left: {
|
left: {
|
||||||
min: 0
|
range: {min: 0}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
showMinorLabels: false
|
showMinorLabels: false
|
||||||
},
|
},
|
||||||
|
@ -29,22 +29,21 @@ $(document).ready(function () {
|
|||||||
groups = new vis.DataSet(buildChartGroups());
|
groups = new vis.DataSet(buildChartGroups());
|
||||||
graph = new vis.Graph2d(document.getElementById(containerId), dataset, groups, {
|
graph = new vis.Graph2d(document.getElementById(containerId), dataset, groups, {
|
||||||
dataAxis: {
|
dataAxis: {
|
||||||
customRange: {
|
|
||||||
left: {
|
left: {
|
||||||
min: 0
|
range: {min: 0}
|
||||||
},
|
},
|
||||||
right: {
|
right: {
|
||||||
min: 0
|
range: {min: 0}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
showMinorLabels: true
|
showMinorLabels: true,
|
||||||
|
alignZeros: true
|
||||||
},
|
},
|
||||||
drawPoints: {
|
drawPoints: {
|
||||||
style: 'circle'
|
style: 'circle'
|
||||||
},
|
},
|
||||||
legend: true,
|
legend: true,
|
||||||
start: $('#from-date')[0].value,
|
start: $('#from-date')[0].value || 0,
|
||||||
end: $('#to-date')[0].value
|
end: $('#to-date')[0].value || 0
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,15 +30,14 @@ $(document).ready(function () {
|
|||||||
groups = new vis.DataSet(buildChartGroups());
|
groups = new vis.DataSet(buildChartGroups());
|
||||||
graph = new vis.Graph2d(document.getElementById(containerId), dataset, groups, {
|
graph = new vis.Graph2d(document.getElementById(containerId), dataset, groups, {
|
||||||
dataAxis: {
|
dataAxis: {
|
||||||
customRange: {
|
|
||||||
left: {
|
left: {
|
||||||
min: 0
|
range: {min: 0}
|
||||||
},
|
},
|
||||||
right: {
|
right: {
|
||||||
min: 0
|
range: {min: 0}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
showMinorLabels: true
|
showMinorLabels: true,
|
||||||
|
alignZeros: true
|
||||||
},
|
},
|
||||||
drawPoints: {
|
drawPoints: {
|
||||||
style: 'circle'
|
style: 'circle'
|
||||||
|
41
public/javascripts/vis.min.js
vendored
41
public/javascripts/vis.min.js
vendored
File diff suppressed because one or more lines are too long
2
public/stylesheets/vis.min.css
vendored
2
public/stylesheets/vis.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user