Highcharts Demo

author(s): Torstein Hønsi

by Nayana Das

HTML

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

<div id="container" style="height: 400px"></div>

JavaScript

// create the chart
Highcharts.chart('container', {
    chart: {
        events: {
            load: function () {
                loaddata(this)
            }
        }
    },

    series: [{
        animation: false,
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
    }]
});

function loaddata(elem){

	var label = elem.renderer.label('Chart loaded', 100, 120)
                    .attr({
                        fill: Highcharts.getOptions().colors[0],
                        padding: 10,
                        r: 5,
                        zIndex: 8
                    })
                    .css({
                        color: '#FFFFFF'
                    })
                    .add();

                setTimeout(function () {
                    label.fadeOut();
                }, 2000);

}