Fixes android sense statistic graph issue

fixes https://github.com/wso2/product-iots/issues/1143
revert-dabc3590
madhawap 8 years ago
parent 476f3336e5
commit c23461710f

@ -75,6 +75,7 @@ var rotation_yData = [];
var rotation_zData = [];
var graphMap = {};
var graphSettingsMap = {};
var palette = new Rickshaw.Color.Palette({scheme: "munin"});
@ -318,6 +319,7 @@ function disconnect() {
}
function maximizeGraph(graph, width,height){
graphSettingsMap[graph.element.id] = {'width': graph.width, 'height': graph.height};
graph.configure({
width: width*2,
height: height*2
@ -327,9 +329,10 @@ function maximizeGraph(graph, width,height){
}
function minimizeGraph(graph){
var graphSettings = graphSettingsMap[graph.element.id];
graph.configure({
width: 366,
height: 300
width: graphSettings.width,
height: graphSettings.height
});
graph.update();
}

Loading…
Cancel
Save