question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing range with updateOptions on datetime x-axis doesn't rescale Y-axis

See original GitHub issue

What is the behavior you expect?

  • When I change the timeframe using updateOptions which updates x-axis min and max, min and max on y-axis adjust to the new dataset. I would like Y-axis to behave like with x-axis zoom and autoScaleYaxis: true.

What is happening instead?

  • Y-axis remains the same as on original dataset. I tried adding to updateOptions zoom for x-axis with autoScaleYaxis: true which doesn’t do anything. I tried loading the whole y-axis and just min and max, both which also don’t work.

Codepen: https://codepen.io/azivkovi/pen/eYNbQVw (change timeframe between 1M and All)

What error message are you getting?

  • No errors.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
junedchhipacommented, Apr 11, 2020

@azivkovi I saw the codepen now. You don’t need to call the updateOptions if you call the zoomX method. zoomX already updates the chart with new min/max

0reactions
flobaadercommented, Apr 17, 2020

Hi @junedchhipa,

I have the same problem. I load new data when the chart is zoomed and manually set the y-axis bounds in the options. Would it be possible to just update the y-axis if the y-axis bounds change in the options?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apexcharts updateOptions xaxis label - Stack Overflow
I have such an example in which I would like to change the series of data on the xaxis along with changing the...
Read more >
How do I change the range of the X-axis with datetimes in ...
To change the range of Y-axis, use set_ylim() method. To display the figure, use show() method. Example. import datetime import matplotlib ...
Read more >
Dygraphs — options reference
When set for the y-axis or x-axis, the graph shows that axis in log scale. Any values less than or equal to zero...
Read more >
Methods - ApexCharts.js
If you want to change the chart at runtime after it has rendered, you may call the following methods of ApexCharts on the...
Read more >
Change the scale of the horizontal (category) axis in a chart
The horizontal (category) axis, also known as the x axis, of a chart displays text labels instead of numeric intervals and provides fewer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found