Paul Yin
Paul Yin

Reputation: 1759

How to set the last point's position in Highcharts

Is there a way put the last point of a series at charts' center or set some right-margin in Highcharts StockChart

like this

enter image description here

Upvotes: 0

Views: 242

Answers (1)

Gildor
Gildor

Reputation: 2574

Have you tried xAxis.maxPadding?

I created this jsfiddle to show the result.

EDIT

OK you use StockChart. In that case you need to set ordinal to false:

    xAxis: {
        maxPadding: 1,
        ordinal: false
    },

Please check this jsfiddle.

Upvotes: 1

Related Questions