HighChart Heatmap with JSON Data

I am trying to integrate specific JSON data into a heatmap offered by highmaps / highcharts.

Example on

HeatMap Demo Link

shows how to use the CSV approach to load data. But I could not start it with a JSON array. Can someone provide the CSV equivalent from the example to get the same heatmap diagram, or show me the path to another JSON based example?

thanks in advance.

Cheers from Peter

+4
source share
1 answer

col/row . 2 : x y. x/y [x, y, value]. , "2013-04-01", , [ ["2013-04-01",0,-0.7], ["2013-04-02",0,-3.4], ["2013-04-03",0,-1.1] ] :

[ [0,0,-0.7], [1,0,-3.4], [2,0,-1.1] ]

, . y?

EDIT: yAxis , axii :

xAxis: {
    categories: ['2013-04-01', '2013-04-02', '2013-04-03'],
    labels: {
        rotation: 90
    }
},
yAxis: {
    title: {
        text: null
    },
    labels: {
        enabled: false
    },
    categories: ['Midnight', '1 am', '2 am', '3 am', '4 am', '5 am', '6 am', '7 am', '8 am', '9 am', '10 am', '11 am', 'Noon', '1 pm', '2 pm', '3 pm', '4 pm', '5 pm', '6 pm', '7 pm', '8 pm', '9 pm', '10 pm', '11 pm'],
    min: 0,
    max: 23,
    reversed: true
},

:

series: [{
    borderWidth: 0,
    nullColor: '#EFEFEF',
    data: [ [0,0,-0.7], [1,0,-3.4], [2,0,-1.1] ]
}]

Live .

, , ( reversed: true, colorAxis ..). , series.data .

+3
source

Source: https://habr.com/ru/post/1547422/


All Articles