How to change char line color?

137 views
Skip to first unread message

Tomas

unread,
Oct 11, 2010, 3:57:09 AM10/11/10
to Google Visualization API
Hello,

I would like to use Google Line Char(http://code.google.com/apis/ajax/
playground/?type=visualization#line_chart). By default first line draw
in char is always blue.
How to change color of line?

regards,
Tomas

Jinji

unread,
Oct 11, 2010, 9:54:14 AM10/11/10
to google-visua...@googlegroups.com
Documentation for LineChart is here. Look for the 'colors' option.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Alex Bejan

unread,
Apr 9, 2014, 11:41:56 AM4/9/14
to google-visua...@googlegroups.com, tom...@gmail.com
Hello,

Just add the colors array to the options array, in the same order as the data columns:

var options = {
                            title: 'Title',
                            colors: ['red', 'green']

                        };

Best of luck!
Alex Bejan
Reply all
Reply to author
Forward
0 new messages