Creation of columns in Hightchart

1

Good morning, the example I should show is like the following link

here is where the data is collected

var chartseries = [{
                name: 'Year 1800',
                data: [107, 31, 635, 203, 2]
            }, {
                name: 'Year 1900',
                data: [133, 156, 947, 408, 6]
            }, {
                name: 'Year 2012',
                data: [1052, 954, 4250, 740, 38]
            }]

But if you notice in the graph, it shows for Africa 3 values 107,33 and 1052

But in the array that I have

As you can see, in the image I show 3 periods, but I'm not grouping them correctly For January you must show me the blue For February the black For March the green

But grouped in the same box of the date

The array in javascript is already running this way

var datosfinales=[];
    for (var  i  in datos)
    {       
     datosfinales.push({type: 'column',
                yAxis:0,
                name: datos[i].name,
                data: datos[i].data,
                dataGrouping: {
                    units: datos[i].name

                },
                stack:datos[i].name
                })

    }

The result as shown in the image below

Thank you very much

    
asked by Jose Patiño 22.03.2018 в 23:37
source

0 answers