Global options

221 views
Skip to first unread message

Denis Duval

unread,
Oct 7, 2019, 9:44:22 AM10/7/19
to Google Visualization API
Hello,
I'm starting with Google Chart and I'd like to know if it's possible to set global options.
For example, set the Title style for all graphics.
Thank you.

Daniel LaLiberte

unread,
Oct 7, 2019, 9:54:05 AM10/7/19
to Google Visualization API
There are no options outside of the options you specify for each chart, except arguably the settings you pass to the google.charts.load() call.

If you are thinking of sharing the options object with multiple charts, be aware that, due to asynchronous processing of your draw calls, you may unintentionally affect the options of earlier draw calls.  So it's best to create separate copies of the options rather than share the same object. 

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/bbc3b0c8-8f15-4a18-bb9f-5b2910823aa8%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages