Graph window date range expands unexpectedly when displaying bar series with no data inside graph window
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
4.8.0
### Reproduction link
[https://jsfiddle.net/dalzell99/tyjzwdcg/1/](https://jsfiddle.net/dalzell99/tyjzwdcg/1/)
### Steps to reproduce
Move the graph so the bar series is outside the graph window
### What is expected?
The date range of the graph window doesn't change unexpectedly
### What is actually happening?
The date range of the graph window increases to be about 5 times the expected range and the line series data is only shown in the middle 20% of the graph window
### Edit: 14th Aug 10:30am (UTC+12)
It has something to do with the width of the bars as in the past we were able to fix the issue by setting barMaxWidth to 5% for the bar series.
Below are some screenshots showing the date range of the graph window changing. The line series data is exactly the same and datazoom date range at the bottom is also exactly the same.
[Hourly - https://ibb.co/4WRZv2T](https://ibb.co/4WRZv2T)
Shows hourly rainfall with 0 values in between the bars shown.
[Daily - https://ibb.co/4mxwYND](https://ibb.co/4mxwYND)
Shows daily rainfall with no 0 values in bar series. The date range of the graph window expanded slightly compared to the hourly.
[Weekly - https://ibb.co/7t3LgWR](https://ibb.co/7t3LgWR)
Shows weekly rainfall with only one data point in series. The date range of the graph window has expanded significantly without the datazoom date range being changed.
Contributor guide
Assessment
This issue has not been assessed yet.