diff options
author | Josh Blum | 2013-03-27 04:01:43 -0500 |
---|---|---|
committer | Josh Blum | 2013-03-27 04:01:43 -0500 |
commit | 2a51862b553b0278f3dd507117725fbf2ea85fd5 (patch) | |
tree | 40d7f4cda9dee114a685433bbd056afbf6fe0c00 /python/gras/query/chart_handler_breakdown.js | |
parent | b62b2f984077c42678223ca2f6301aea50fe7d65 (diff) | |
parent | 561c9054a51a03162bcc50deba8e3a7e0e05cd3c (diff) | |
download | sandhi-2a51862b553b0278f3dd507117725fbf2ea85fd5.tar.gz sandhi-2a51862b553b0278f3dd507117725fbf2ea85fd5.tar.bz2 sandhi-2a51862b553b0278f3dd507117725fbf2ea85fd5.zip |
Merge branch 'query_work'
Diffstat (limited to 'python/gras/query/chart_handler_breakdown.js')
-rw-r--r-- | python/gras/query/chart_handler_breakdown.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/gras/query/chart_handler_breakdown.js b/python/gras/query/chart_handler_breakdown.js index 8e90fc3..459c2d3 100644 --- a/python/gras/query/chart_handler_breakdown.js +++ b/python/gras/query/chart_handler_breakdown.js @@ -14,6 +14,7 @@ function GrasChartHandlerBreakdown(args) this.chart = new google.visualization.PieChart(args.panel); this.title = "Handler Breakdown - " + this.block_id; + this.default_width = GRAS_CHARTS_STD_WIDTH; } GrasChartHandlerBreakdown.prototype.update = function(point) @@ -29,9 +30,10 @@ GrasChartHandlerBreakdown.prototype.update = function(point) ]); var options = { - width:GRAS_CHARTS_STD_WIDTH, chartArea:{left:5,top:0,right:5,bottom:0,width:"100%",height:"100%"}, }; + if (this.gc_resize) options.width = 50; + if (this.gc_resize) options.height = 50; this.chart.draw(data, options); }; |