I've updated from v0.5 to v1.0, which breaks the former working code. In v1.0 the encoding type can't be specified any more:
That works with v0.5:
g = GChart.bar(
:title => title,
:legend => ["S", "S", "R", "C"],
:data => [ data1, data2, data3, data4 ],
:bar_colors => ['FF0000', '00FF00', '0000FF', 'DDDDDD' ],
:axis_with_labels => "x",
:axis_labels => [weeks],
:size => "600x500",
:encoding => "text",
:bar_width_and_spacing => '25,6',
:extras => "chm=N,FF0000,-1,,12|N,000000,0,,12,,c|N,000000,1,,12,,c|N,ffffff,2,,12,,c"
In v1.0 the :encoding => "text" attribute is missing.
I want to create a stacked graph with a total value on top as described in the Google chart API: