Re: Options on ColumnChart

59 views
Skip to first unread message

Stoker

unread,
Jul 27, 2012, 10:22:42 AM7/27/12
to google-visua...@googlegroups.com
I was able to resolve this by using a BarChart stacked
and
using the following to declare the value for rows {v:7, f:'7.000'} taken from: https://developers.google.com/chart/interactive/docs/reference
var data = new google.visualization.DataTable();
data.addColumn('string', 'Task');
data.addColumn('number', 'Hours per Day');
data.addRows([
  ['Work', 11],
  ['Eat', 2],
  ['Commute', 2],
  ['Watch TV', 2],
  ['Sleep', {v:7, f:'7.000'}]
]);

On Friday, 27 July 2012 14:57:55 UTC+2, Stoker wrote:
Hi, 

I'm new to Google Visualization and loving playing with them! 
Trying to implement a stacked ColumnChart. I can't seem to find options to do the following;
  • Set the minimum size of the column data so that even if the data is a lot less than another column, a user will still be able to see/select/mouseover the bar section within having to zoom on chart? (maybe I need to do this manually through JS)
  • And display the graph vertically? 
Any help much appreciated..

Thanks!

Reply all
Reply to author
Forward
0 new messages