glm
Posts: 9
Joined: Fri Jan 30, 2015 5:20 pm

Stacked Bar Chart - Organizing the data - SOLVED

Tue Feb 03, 2015 7:32 pm

I'm trying to create stacked bar charts and cannot create it using the data organization below

series: [{
name: 'John',
data: [5, 3, 4, 7, 2]
}, {
name: 'Jane',
data: [2, 2, 3, 2, 1]
}, {
name: 'Joe',
data: [0,0,3,4,0]
}


How would I do something along the way of (pseudo-code below)

category:[{
name:' Apple',
data:[Adam,87; Barry,31; Chris,47;David;141;Ernie,14; ....] for 200+ names
},{
name: 'Bananas',
data: [name,##;name ##; ...] for about 80+ names

The total amount would be the same - hence the chart would be the same length.

See fiddle : http://jsfiddle.net/MAYO/eLam1Lo1/4/

Fiddle is a quick css representation of what it might look like.

Here's a fiddle with everything working: http://jsfiddle.net/MAYO/cm5roecm/

Return to “Highcharts Usage”