Stacking only two columns using google charts

Using the Google Charts tool, is there a way to fit only two (out of four) columns in my dataset?

On the google website, this is an example of them:

var data = google.visualization.arrayToDataTable([
  ['Genre', 'Fantasy & Sci Fi', 'Romance', 'Mystery/Crime', 'General','Western', 'Literature', { role: 'annotation' } ],
  ['2010', 10, 24, 20, 32, 18, 5, ''],
  ['2020', 16, 22, 23, 30, 16, 9, ''],
  ['2030', 28, 19, 29, 30, 12, 13, '']
]);

var options = {
  width: 600,
  height: 400,
  legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '75%' },
  isStacked: true,
};

      

How could I do this if I only wanted to bed, for example, "Romance and Mystery / Crime"?

+3
charts


source to share


No one has answered this question yet

See similar questions:

17
columnar column table for two datasets - Google Chart
0
Column chart by group

or similar:

223
JavaScript diagram library
143
Remove padding or fields from Google charts
17
columnar column table for two datasets - Google Chart
3
Columnar table for two datasets - Excel
2
Google Chart: Labeling Column Charts
1
Stacked Columnar Google Chart Annotations
1
Turn google columnar chart to waterfall table
1
Grouped and grouped google column charts
0
Google Maps, an alternative columnar column table
0
System.NotImplementedException in System.Core.dll when I use Chart Helper in ASP.NET



All Articles
Loading...
X
Show
Funny
Dev
Pics