reduce padding around graph

39 views
Skip to first unread message

tim worley

unread,
Jan 13, 2013, 5:53:07 PM1/13/13
to ga-easy-da...@googlegroups.com
It seems that graphs such as the piegraph have a large amount of padding around them, which means that even though i might have say 350px width to display it, the text in the legend is always wrapping over two lines, despite considerable whitespace around the drawn area.

Can this be manipulated at all?

Eg, see attached.

Thanks!
Screen Shot 2013-01-14 at 9.52.28 AM.png

Shan Aminzadeh

unread,
Jan 15, 2013, 3:10:19 PM1/15/13
to ga-easy-da...@googlegroups.com
You can do this by using the 'chartOptions' object in the GADash config object.


for example:

'chartOptions': {
        height:600,
        title: 'Visits in January 2011',
        chartArea:{left:20,top:0,width:"50%",height:"75%"}
      }

If all else fails, you can probably add your own css that will override these values for better formatting.

-Shan

tim worley

unread,
Jan 16, 2013, 5:01:36 AM1/16/13
to ga-easy-da...@googlegroups.com
Thanks - I actually worked around it and used theme:maximise - works a treat.  Thanks for your reply again - i was going to post my answer in any case for others.
Reply all
Reply to author
Forward
0 new messages