Timeline not obeying options.timeline.barLabelStyle

73 views
Skip to first unread message

Mike O'Connell

unread,
Sep 2, 2015, 8:01:29 AM9/2/15
to Google Visualization API
We've generated a jsfiddle for creating a timeline: http://jsfiddle.net/wfjzkddg/2/

If you note the bar font is not obeying the fontSize as prescribed in the options, however the bar does resize accordingly.

Upon inspection of the SVG the text component does indeed reflect the font-family and font-size as per the options but the rendered SVG doesn't show it.

Anyone else encountered this? How can we fix it?

Sergey Grabkovsky

unread,
Sep 2, 2015, 9:41:17 AM9/2/15
to Google Visualization API
Hi Mike,

This appears to be due to jsfiddle's 'Normalize CSS' option. It sets the font-size property of all elements to '100%', which causes our style to be ignored. If you simply disable that option, everything should look as expected: http://jsfiddle.net/wfjzkddg/3/

--
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 post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4c75c72b-040a-4c33-abf2-d6ea85573afd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mike

unread,
Sep 2, 2015, 9:48:50 AM9/2/15
to google-visua...@googlegroups.com
Ah yes thanks, i see it in production. 

Any idea when role: "style" columns will be obeyed in the timeline?
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/mhlljfpossc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
Reply all
Reply to author
Forward
0 new messages