Highcharts Demo

author(s): Torstein Hønsi

by Mi Ku

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>

<div id="container"></div>

CSS

#container {
    max-width: 800px;
    min-width: 360px;
    margin: 0 auto;
}

JavaScript

// Adds the chart to the container DIV.
Highcharts.chart('container', {
    chart: {
      type: 'pie'
    },
    title: {
        text: 'Tooltip sticks on hover'
    },

    subtitle: {
        text: 'Once the pointer is over it, it won\'t move to reveal underlying points'
    },

    tooltip: {
        stickOnContact: false
    },

    plotOptions: {
        series: {
            pointStart: 2010
        }
    },

    series: [{
        name: 'Installation',
        data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
    }]
});