score:1

Accepted answer

You have to set your pointRange option for series.

pointRange : On linear and datetime axes, the range will be computed as the distance between the two closest data points.

As there is only one point, Highchart won't be able to calculate the pointRange...

To be sure that it will work, put it at the tickInterval value.

// ...
plotOptions: {
    series: {
        pointRange: 24 * 3600 * 1000, // tickInterval has the same value
        // ...
    },
    // ...
},
// ...

For your question about First and Last label :

xAxis: {
    // ...                    
    showFirstLabel: false,
    showLastLabel: false,
    // ...
}

Look at this Example.

score:0

I know this is a late but helpful answer, I use pointPlacement attribute of the config when using column charts and here is a plunker that shows how to use it to make columns stay next to each other .Results: http://plnkr.co/edit/uqZ4LEugMefLD6WSzHZT?p=preview

$(function () {
    $('#container2').highcharts({
        chart: {
            type: 'column'
        },
        xAxis: {
            type: 'category',
            categories:["Population","Kokulation"]
        },
        legend: {
            enabled: false
        },
        plotOptions: {
            series: {
                pointPadding: 0,
                groupPadding: 0,
                pointWidth:20
            },
        },
        tooltip: {
            shared: false
        },
        series: [{
            name: 'Population',
            data: [
                ['Shanghai', 23.7],
                ['Lagos', 16.1]
            ],
            pointPlacement:0.23
        },
        {name:"Kokulation",
        data:[ 
                        ['Istanbul', 14.2],
                ['Karachi', 14.0]
             ],
             pointPlacement:-0.2146
        }
        ]
    });
});

score:1

The problem is that with one point Highcharts won't be able to calculate pointRange for any of series. In that case set directly pointRange for series, see: http://jsfiddle.net/b33mN/5/

In the example, pointRange = tickInterval, it's probably you want to achieve.


Related Query

More Query from same tag