Barwidth in combochart

10 views
Skip to first unread message

Pratik Mandrekar

unread,
Sep 25, 2015, 9:42:04 AM9/25/15
to Google Visualization API
Hi all,

I'm trying to draw a comboachart with bars and a line to indicate the target. However, I'm unable to control the width of the bars and they appear too thin. Example - http://jsfiddle.net/ratpik/W67qU/42/

Any help?

Thanks,
Pratik

Sergey Grabkovsky

unread,
Sep 25, 2015, 10:18:27 AM9/25/15
to Google Visualization API
Hi Pratik,

The bars' width is set to some fraction of the minimum distance between domain values, and it doesn't automatically combine multiple domain values. Your first and last sets of dates are the same date, so the bars will calculate their width to be 0, causing them to ignore the parameter you give. If you just combine your first and last domains into one row, everything should look correct. Here is a fixed version of your jsfiddle: http://jsfiddle.net/W67qU/44/

--
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/af7776f6-d9e9-4cfd-832d-1b26cfa1534e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages