Update vis

This commit is contained in:
Maximilian Grundke
2018-04-25 15:41:53 +02:00
parent 585662a97c
commit b2ad976ccd
5 changed files with 44 additions and 41 deletions

View File

@ -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
}, },

View File

@ -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
}); });
}; };

View File

@ -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'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long