Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update xAxis range dynamically #6773

ShMcK opened this issue May 27, 2017 · 1 comment

Cannot update xAxis range dynamically #6773

ShMcK opened this issue May 27, 2017 · 1 comment


Copy link

@ShMcK ShMcK commented May 27, 2017

Calling update should change the xAxis range, but doesn't.

Highcharts.stockChart('container', {
    xAxis: {
        range: 6 * 30 * 24 * 3600 * 1000 // six months
    rangeSelector: {
        enabled: false
    series: [{
        name: 'USD to EUR',
        data: usdeur

setTimeout(() => {
   range: 12 * 30 * 24 * 3600 * 1000 // 1 year
 alert('should be one year. Is still six months')
}, 3000);

See Live Example

Copy link

@pawelfus pawelfus commented May 29, 2017

Hi @ShMcK

Thank you for reporting the issue. It looks like the extremes from navigator have higher priority than range option.

Use Axis.setExtremes() instead of Axis.update({range: newRange}). Demo:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants