No, series are by DataTable column only. There are ways to work around the problem, however. You can do things like this: http://jsfiddle.net/PXntw/
Unfortunately, there is no way to reduce the spacing between rows, as the chart has reserved space for the bars with no data. Normally we get around this by setting the 'isStacked' option to true, but that won't work in your case, as you specifically want your grouped columns to be the same color, which would make them indistinguishable when stacked. On Tuesday, March 27, 2012 5:23:19 PM UTC-4, Eduardo Diederichsen wrote: > > So, you know if I can have one serie for each row on my DataTable? > > > > On Mar 27, 5:22 pm, asgallant <[email protected]> wrote: > > Bars are colored by series (column in the DataTable), so you have to > have > > each color represented by its own series. Search these forums for more > > details, as this has been covered extensively. > > > > > > > > > > > > > > > > On Tuesday, March 27, 2012 4:10:22 PM UTC-4, Eduardo Diederichsen wrote: > > > > > Hi, > > > > > I'm using bar chart from google chart api, but I have a problem! I > > > have a bar chart with 2 columns and 6 rows and I have to set one color > > > for each row. > > > I just found a way to set the color of the first and of the second > > > column, but for each row, those colors repeat! > > > > > Someone can help me? > > > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/AMu7DWwJ7NQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
