Gow to make fixed width of each bar in Bar Charts

21 views
Skip to first unread message

Якушев Владимир

unread,
Feb 24, 2016, 1:38:03 AM2/24/16
to Google Visualization API
Hello everybody


Have question how to make width of each bar fixed. Right now I have got situation when width of each bar depends on quantity of bars shown. Example in attach. Thnaks a lot for your help.



1day.png
5days.png
10days.png

Daniel LaLiberte

unread,
Feb 24, 2016, 9:33:11 AM2/24/16
to Google Visualization API
Currently, you have to control the bar width indirectly, by specifying the appropriate chartArea.height in your case.  
In the newest release, still 'upcoming' but about to be 'current', there is a new bar.width option, though it will still be constrained by the chartArea height, which defaults to whatever the container element requires. We don't have a way yet to automatically compute the chart height from the bar height.

On Wed, Feb 24, 2016 at 1:38 AM, Якушев Владимир <yakush...@gmail.com> wrote:
Hello everybody


Have question how to make width of each bar fixed. Right now I have got situation when width of each bar depends on quantity of bars shown. Example in attach. Thnaks a lot for your help.



--
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/51e23407-0feb-4b45-b5e9-ed4ca6420b39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Якушев Владимир

unread,
Feb 25, 2016, 2:45:36 AM2/25/16
to Google Visualization API
thanks a lot I understand the idea

среда, 24 февраля 2016 г., 17:33:11 UTC+3 пользователь Daniel LaLiberte написал:
Currently, you have to control the bar width indirectly, by specifying the appropriate chartArea.height in your case.  
In the newest release, still 'upcoming' but about to be 'current', there is a new bar.width option, though it will still be constrained by the chartArea height, which defaults to whatever the container element requires. We don't have a way yet to automatically compute the chart height from the bar height.
On Wed, Feb 24, 2016 at 1:38 AM, Якушев Владимир <yakush...@gmail.com> wrote:
Hello everybody


Have question how to make width of each bar fixed. Right now I have got situation when width of each bar depends on quantity of bars shown. Example in attach. Thnaks a lot for your help.



--
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.



--
Reply all
Reply to author
Forward
0 new messages