score:2

you should configure these callbacks in the options of your chart. it's cleaner that way:

function movelabels(){
    $('.highcharts-axis-labels.highcharts-xaxis-labels text').first().attr('x', 25);
    $('.highcharts-axis-labels.highcharts-xaxis-labels text').last().attr('x', 813);
}

$('#container').highcharts({
    chart: {
        events: {
            load: movelabels
            redraw: movelabels
           }
        }
    },
    ...

Related Query

More Query from same tag