Add class names to line chart

180 views
Skip to first unread message

Daniel Chilvers

unread,
Nov 14, 2017, 12:29:10 PM11/14/17
to Google Visualization API
Is there a way to add class names, rather than setting the style object? I see this is part of other charts (tables, org charts etc) - but there doesn;t seem to be an option for line charts?

Seems odd, as it's rendering an SVG!

Daniel LaLiberte

unread,
Nov 14, 2017, 1:53:21 PM11/14/17
to Google Visualization API
It seems conceivable that one could use CSS to style the SVG-rendered charts similar to how we style the HTML of Table (and other HTML-rendered charts).  The style role is even formatted similar to CSS, but the similarity is somewhat of an illusion since it could not be used directly in the SVG.  

But I like the idea of extending our CSS-like notation to support classes.  We'd probably want a way of representing the CSS in JSON, so it could be specified in the options object.   Is there a library we could leverage that does that already?

 

On Tue, Nov 14, 2017 at 12:29 PM, Daniel Chilvers <psyclepr...@gmail.com> wrote:
Is there a way to add class names, rather than setting the style object? I see this is part of other charts (tables, org charts etc) - but there doesn;t seem to be an option for line charts?

Seems odd, as it's rendering an SVG!

--
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+unsub...@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/47c3cb3c-45e3-4c8b-9a26-a48739045361%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages