There is no way to customize Google feedback in the Google Visualization API.
But we can get Google Charts to respond to changes in Windows . To respond to the Google Chart, there is a jQuery library available at GitHub - jquery-smartresize , licensed under the MIT license, which has the ability to resize graphs when the event window is resized.
This GitHub project has two script files: -
jquery.debouncedresize.js: adds a special event that fires once after the window has been resized.
&
jquery.throttledresize.js: adds a special event that fires at a reduced rate (no more double events from Chrome and Safari).
Here are two examples of flexible diagrams ...
We can modify the bottom pad visualization_wrap to fit the desired aspect ratio of the chart.
Calculate as Height / Width x 100 For a 16x9 display it would be 9/16 = 0.5625 x 100 = 56.25% For a square it'd be 100%
We can adjust the chartarea parameter of Google charts to ensure that labels are not disabled when resized .
OO7 Aug 04 '14 at 11:29 2014-08-04 11:29
source share