Is there a way to set bar width for 'timeofday' column?

53 views
Skip to first unread message

Jan Stelovsky

unread,
May 24, 2016, 10:17:50 PM5/24/16
to Google Visualization API
I didn't find any way to set bar width for 'timeofday' column.
I tried options:
  {bar: {width:20, group: {width:20}}}
and for cell in 'style' column:
  "stroke-width:10; width:20"
(stroke-width works, but that's not a great way to get the bars wider :)

PS.
Documentation uses {groupWidth:20} while Google Charts Release Notes for release 44 says:

Corecharts:
    • Added options to specify bar.widthbar.gapbar.group.width (wasbar.groupWidth) and bar.group.gap.
which seems to indicate that bar.groupWidth doesn't work anymore (?)

PSS.
Documentation for 'timeofday' uses the 'clasic' (aka outdated) charts.Bar while visualization.BarChart is much less functional. (Time to update?)

Daniel LaLiberte

unread,
May 25, 2016, 9:50:54 AM5/25/16
to Google Visualization API
Hi Jan,

The google.charts.Bar is the newer Material chart.  google.visualization.BarChart is the older "classic" chart, not exactly outdated.

Documentation on the new bar width and gap options needs to be updated.  The new options apply to the classic charts, though not the material Bar chart.   And bar.groupWidth will continue to work as well for backward compatibility.

The timeofday column type applies to the class charts, though not yet to the material charts.

Hope that clarifies things.


--
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 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/6f981e4b-e4f2-40fe-967b-469a4afc3436%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages