Unfortunately not all the CSS properties for all the charts are available 
through the API. So here's one solution.

Nearly all browsers have some sort of developer tools that let you inspect 
the CSS for every element on a page - see 
https://www.lifewire.com/web-browser-developer-tools-3988965 

Using the tools you can see that the table that is drawn has the CSS class 
name .google-visualization-table-table, and there are loads of others. Luckily 
someone has already done a lot of work and found most of them for the 
tables - https://formidableforms.com/help-desk/google-table-styling/

In your code, take out all the CSS, and replace it with what they've got on 
that page. By experimenting a little, you can change almost every aspect of 
the table, including the background colors (Hint: the lines containing 
.google-visualization-table-tr-even-nonstrict 
and .google-visualization-table-tr-odd-nonstrict). It's not the most 
elegant solution, but it does work.

There may be a simpler solution, but I couldn't quickly find it.

-- 
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-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/e8e79da2-e599-4a78-af8f-c1fb3d282969%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to