score:0

highcharts.setoptions is used for set chart object properties globally, you should move individual properties inside highcharts.chart object properties.

in this case an example is moving global options:

// affect all charts and you need to override it
highcharts.setoptions({
    chart: {
        inverted: false,
        marginleft: 0,
        type: 'line'
    }
});

to chart options:

// affect only this chart and/or override global properties
highcharts.chart('container1', {
    chart: {
        inverted: false,
        marginleft: 0,
        type: 'line'
    }
});

Related Query

More Query from same tag