Removing the Horizontal Margins on a Google Chart Graph

I seem to be able to successfully modify quite a bit with google charts, but I couldn't find a good way to remove the horizontal padding to the left and right of a google graph.  From what I can find, there really isn't a good way to do it.  I thought I was close with some of the answers on this page, but nothing seemed to work.  


In the end, I ended up using css to do it, but creating a wrapper div around the chart div, expanding the width of the chart div, setting a negative margin, and an overflow hidden on the wrapper div to hide the padding that gets applied.  Something like:


   overflow: hidden;
   width: 100%;
   height: 25%;
   width: 122%;
   margin-left: -11%;

I can't say this is a super-elegant answer to the issue, but it seems to work ok (I had to play around with the width and margin on the #graph).

Related Posts

Simple Sticky Element

The user scrolls down the page and once the scrolling reaches the top of an element of my choosing, that element sticks to the top of the window, so it's always visible from that point on...
Read Post

PHP JSON Returned As Object Instead of Array

I was returning, what I thought was an array from PHP, but it kept returning it as a json object...
Read Post

A Simple Slideout Menu

I just wanted an easy slideout menu. Click on a link, and the menu slides out from the left side of the screen. Click on the link again, or somewhere else on the page, and the menu slides back in...
Read Post

Enhancements for jPlayer Implementation

I love the jPlayer for easily being able to add modern mp3 support to web pages.  I wanted a few additional features
Read Post