StockMapper

by amrutaJgtp

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/maps/modules/map.js"></script>
<script src="https://code.highcharts.com/maps/modules/data.js"></script>
<div id="container" style="height: 400px; max-width: 400px; margin: 0 auto"></div>

JavaScript

$(function () {

    $('#container').highcharts({

        chart: {
            type: 'heatmap',
            inverted:true
        },


        title: {
            text: 'Heat map',
            align: 'left'
        },

        xAxis: {
             labels: {
                enabled: false
            }
        },

        yAxis: {
            labels: {
                enabled: false
            }
        },

        colorAxis: {
            stops: [
                [0, '#3060cf'],
                [0.5, '#fffbbc'],
                [0.9, '#c4463a']
            ]
        },

        series: [{
            borderWidth: 0,
            data: [
                [0, 0, 2.0],
                //[0,1,null,"#00FF00"],
                {x:0,y:1,value:null,color:"#00FF00"},
                [0, 2, 0.9],
                [1, 0, 0.4],
                [1, 1, 0.0],
                [1, 2, -1.1],
                [2, 0, -1.8],
                [2, 1, -2.1],
                [2, 2, -2.3]
            ]

        }]

    });
});