dionysosz
dionysosz

Reputation: 173

Google Chart Visualization different number of bars

Hi I am trying to make a bar chart using the google bar chart visualization https://developers.google.com/chart/interactive/docs/gallery/barchart

I want to ask if I can use different number of bars for each field..

Let's say I have Asia, Europe, Africa and I have one bar for population in each of them. I want to add another bar ONLY in Europe for the average death rate.

As far as tried I couldn't find a way to do it, as you define the number of the bar and the titles from the beginning which include all the fields (Asia,Europe,Africa) so you can't add an addition bar for only one field.. Any idea?

Upvotes: 0

Views: 111

Answers (1)

Franck
Franck

Reputation: 1394

Why not initialized the fields you don't want to 0 ?

Upvotes: 0

Related Questions