I'm a greenhorn in JavaScript & other JavaScript technologies. I've got some graphs plotted using google charts on a html page. I'd like to do the below on every chart on the page.
- Have a maximize button like the one in videos to maximize every the chart to full screen when I click on the maximize icon.
- Restore it back to it's original size when I exit the full screen mode.
If adding the button to maximize is a big task, being able to maximize on double clicking the graph is also fine.
I've plotted each of the graphs in a html 'div' as instructed in googlechart examples. I'd love to hear from anyone willing to help please.
The graphs get plotted in div elements plot4,plot8 & plot13.
<div>
<div id="plot4" class="plot_graph" style="float: left; width: 31%;"></div>
<div id="plot8" class="plot_graph" style="float: left; width: 31%;"></div>
<div id="plot13" class="plot_graph" style="float: right; width: 32%;"></div>
</div>