{"size": 797, "ext": "js", "max_stars_repo_path": "js/highcharts-master/samples/highcharts/xaxis/labels-formatter-extended/demo.js", "max_stars_repo_name": "hellobagus/ifcasplus_web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/highcharts-master/samples/highcharts/xaxis/labels-formatter-extended/demo.js", "max_issues_repo_name": "hellobagus/ifcasplus_web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/highcharts-master/samples/highcharts/xaxis/labels-formatter-extended/demo.js", "max_forks_repo_name": "hellobagus/ifcasplus_web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.1515151515, "max_line_length": 95, "alphanum_fraction": 0.4930991217}

Highcharts.chart('container', {

    title: {
        text: 'Demo of reusing but modifying default X axis label formatter'
    },

    subtitle: {
        text: 'X axis labels should have thousands separators'
    },

    xAxis: {
        labels: {
            formatter: function () {
                var label = this.axis.defaultLabelFormatter.call(this);

                // Use thousands separator for four-digit numbers too
                if (/^[0-9]{4}$/.test(label)) {
                    return Highcharts.numberFormat(this.value, 0);
                }
                return label;
            }
        }
    },

    series: [{
        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],
        pointStart: 9000,
        type: 'column'
    }]

});
