{"size": 792, "ext": "js", "max_stars_repo_path": "js/highcharts-master/samples/issues/highcharts-4.1.10/4799-grouped-column-pos/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/issues/highcharts-4.1.10/4799-grouped-column-pos/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/issues/highcharts-4.1.10/4799-grouped-column-pos/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": 27.3103448276, "max_line_length": 87, "alphanum_fraction": 0.3800505051}

$(function () {
    QUnit.test('Non-grouped column is centered', function (assert) {
        var chart = $("#container").highcharts({
            chart: {
                type: 'column'
            },
            plotOptions: {
                series: {
                    animation: false
                }
            },
            series: [{
                data: [2, 3, 4]
            }, {
                data: [2, 3, 4]
            }, {
                data: [1, 2, 3],
                grouping: false
            }]
        }).highcharts();

        var bBox = chart.series[2].points[0].graphic.getBBox();
        assert.ok(
            Math.abs((bBox.x + bBox.width / 2) - chart.xAxis[0].toPixels(0, true)) < 1,
            'Last series\' column is centered'
        );
    });
});