Commit 0c92c6fc by Bence Dányi

webui: bar chart width fix

parent b258b5a9
...@@ -121,7 +121,14 @@ ...@@ -121,7 +121,14 @@
'height':20, 'height':20,
isStacked: true, isStacked: true,
enableInteractivity: false, enableInteractivity: false,
colors: ['red', 'orange', 'blue'] colors: ['red', 'orange', 'blue'],
hAxis : {
viewWindowMode: 'explicit',
viewWindow: {
min: 0,
max: {{cloud_stat.MEM.USED_MEM|unlocalize}}+{{cloud_stat.MEM.ALLOC_MEM|unlocalize}}+{{cloud_stat.MEM.FREE_MEM|unlocalize}}
}
},
}; };
var chart = new google.visualization.BarChart(document.getElementById('chart_cpu_div')); var chart = new google.visualization.BarChart(document.getElementById('chart_cpu_div'));
chart.draw(data_cpu, cpu_options); chart.draw(data_cpu, cpu_options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment