Removing Margin/Padding on Line Charts

252 views
Skip to first unread message

Dumistoklus

unread,
Sep 10, 2010, 3:06:57 AM9/10/10
to Google Visualization API
"position: relative" is not the solution indentation!

need to have users be able to change this setting. how to bring this
idea to the founders of the script?

Lucas

unread,
Sep 10, 2010, 9:22:59 AM9/10/10
to Google Visualization API
On the Code Examples there's some examples of how to make some
interactivity with the charts.

The Gauge sample ( http://code.google.com/intl/pt-BR/apis/visualization/documentation/examples.html#gauge_example
) shows how to add a button that calls a JavaScript to change a value
on the code.

Couldn't you use something like a global variable:

var pos = "center";

Then you set the position with it on the chart:
position = pos;

And on the button you could call a JavaScript function that changes
this value:
function changeValue(){
pos = "relative"
}

Well, this is just an idea, it might work!
Hope that I've helped some way!
Reply all
Reply to author
Forward
0 new messages