Changing range with updateOptions on datetime x-axis doesn't rescale Y-axis
See original GitHub issueWhat is the behavior you expect?
- When I change the timeframe using
updateOptions
which updates x-axismin
andmax
,min
andmax
on y-axis adjust to the new dataset. I would like Y-axis to behave like with x-axis zoom andautoScaleYaxis: true
.
What is happening instead?
- Y-axis remains the same as on original dataset. I tried adding to
updateOptions
zoom for x-axis withautoScaleYaxis: true
which doesn’t do anything. I tried loading the whole y-axis and justmin
andmax
, 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@azivkovi I saw the codepen now. You don’t need to call the
updateOptions
if you call thezoomX
method.zoomX
already updates the chart with new min/maxHi @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?