js/highcharts-master/samples/highcharts/studies/series-labels-stock/demo.js
/**
 * Create the chart when all data is loaded
 * @returns {undefined}
 */
Create the chart when all data is loaded
@returns {undefined}
Create the chart when all data is loaded @returns { undefined }
function createChart() {
    Highcharts.stockChart('container', {
        rangeSelector: {
            selected: 4
        },
        yAxis: {
            labels: {
                formatter: function () {
                    return (this.value > 0 ? ' + ' : '') + this.value + '%';
                }
            },
            plotLines: [{
                value: 0,
                width: 2,
                color: 'silver'
            }]
        },
        xAxis: {
            gridLineWidth: 1
        },
        plotOptions: {
            series: {
                compare: 'percent'
            }
        },
        navigator: {
            series: {
                label: {
                    enabled: false
                }
            }
        },
        tooltip: {
            pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.change}%)<br/>',
            valueDecimals: 2
        },
        series: seriesOptions
    });
}
function createChart ( ) { Highcharts . stockChart ( 'container' , { rangeSelector : { selected : 4 } , yAxis : { labels : { formatter : function ( ) { return ( this . value > 0 ? ' + ' : '' ) + this . value + '%' ; } } , plotLines : [ { value : 0 , width : 2 , color : 'silver' } ] } , xAxis : { gridLineWidth : 1 } , plotOptions : { series : { compare : 'percent' } } , navigator : { series : { label : { enabled : false } } } , tooltip : { pointFormat : '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.change}%)<br/>' , valueDecimals : 2 } , series : seriesOptions } ) ; }
Create the chart when all data is loaded
 @returns {undefined}
Create the chart when all data is loaded @returns { undefined }