Set cell properties in heatmap

I have a question about a heatmap from Highcharts js. I am currently using version 4.0.4 for Highcharts. The question is very simple. Can I set properties for a cell like color in Highcharts. I cannot find anything in my docs.

"data":[[0,0,"1"],[1,0,1342],[0,1,"2"],[1,1,127]

      

Here is some data for the heat map object. My idea was to set properties like this:

"data":[[[0, 0, 10], {color : green}],[1,0,1342],[0,1,"2"],[1,1,127]

      

But that won't work.

Thank you in advance

+3


source to share


1 answer


You are close.

The reason you are not working is because you are trying to mix object and array notation.

Instead

[[0, 0, 10], {color : green}]

      

You need



{x:0,y:0,value:10,color:'green'}

      

If you specify one parameter explicitly, name them all.

Example:

+3


source







All Articles