kannanrbk
kannanrbk

Reputation: 7134

How to position the navigator series in highstock?

I want to fix the navigator handles position at last. The navigator handles are full expanded when I reload the page.

I want to fix the navigator handles position like this.

enter image description here

In this below image , I manually adjusted the handles position at last. I want to fix the position by default.

enter image description here

Upvotes: 2

Views: 3523

Answers (3)

JaskeyLam
JaskeyLam

Reputation: 15755

use xAxis.range :

$('#container').highcharts('StockChart', {
    xAxis: {
        range: 6 * 30 * 24 * 3600 * 1000 // six months
    },
    ....
}

demo fidder

Upvotes: 0

hacklikecrack
hacklikecrack

Reputation: 1380

You need to set the xAxis range in ms: http://api.highcharts.com/highstock#xAxis.range

Upvotes: 2

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

You can use setExtremes function http://api.highcharts.com/highstock#Axis.setExtremes()

Upvotes: 1

Related Questions