echarts
echarts copied to clipboard
Handle dataExtend with function
Brief Information
This pull request is in the type of:
- [x] bug fixing
- [x] new feature
- [ ] others
What does this PR do?
Add ability to use min and max functions in AxisProxy component
Fixed issues
There is problem with zoom when min and max properties are functions. So it's difficult to hand out with border cases.
After: How is it fixed in this PR?
xAxis: {
max: val => val.max + val.max * 0.05
...
},
yAxis: {
max: val => val.max + val.max * 0.05
...
},
will not affect on zoom options, so border points will be unavailable:
no zoom:

zoom:

Green dot is unavailable
So, right now I just find max value from data and pass it as option. So it works only with number:

Are there any API changes?
- [ ] The API has been changed.
Related test cases or examples to use the new APIs
NA.
Merging options
- [x] Please squash the commits into a single one when merge.
Other information
Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.
This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.
This PR has been automatically closed because it has not had recent activity. Sorry for that and we are looking forward to your next contribution.