highcharts-null-point

by Vladymyr Shevchuk

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/heatmap.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>


<div id="container" style="height: 400px; min-width: 310px; max-width: 800px; margin: 0 auto"></div>

CSS

.highcharts-null-point {
  fill: red;
}

JavaScript

$(function () {

    $('#container').highcharts({

        chart: {
            type: 'heatmap',
            marginTop: 40,
            marginBottom: 80
        },


        title: {
            text: 'Sales per employee per weekday'
        },

        xAxis: {
            categories: ['Alexander', 'Marie', 'Maximilian']
        },

        yAxis: {
            categories: ['Monday', 'Tuesday', 'Wednesday'],
            title: null
        },

        colorAxis: {
            min: 0,
            max: 100,
            minColor: '#FFFFFF',
            maxColor: Highcharts.getOptions().colors[0]
        },

        legend: {
            align: 'right',
            layout: 'vertical',
            margin: 0,
            verticalAlign: 'top',
            y: 25,
            symbolHeight: 280
        },

        tooltip: {
            formatter: function () {
                return '<b>' + this.series.xAxis.categories[this.point.x] + '</b> sold <br><b>' +
                    this.point.value + '</b> items on <br><b>' + this.series.yAxis.categories[this.point.y] + '</b>';
            }
        },

        series: [{
            name: 'Sales per employee',
            borderWidth: 1,
            data: [[0, 0, 0], [0, 1, 5], [0, 2, null], [1, 0, null], [1, 1, null], [1, 2, null], [2, 0, null], [2, 1, null], [2, 2, 44]],
            dataLabels: {
                enabled: true,
                color: '#000000'
            }
        }]

    });
});