echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Handle dataExtend with function

Open mmarkelov opened this issue 5 years ago • 2 comments

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: Снимок экрана 2020-03-26 в 12 48 04

zoom: Снимок экрана 2020-03-26 в 12 48 51

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: Снимок экрана 2020-03-26 в 12 51 15

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

mmarkelov avatar Mar 26 '20 09:03 mmarkelov

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.

echarts-bot[bot] avatar Mar 26 '20 09:03 echarts-bot[bot]

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.

github-actions[bot] avatar Aug 04 '22 21:08 github-actions[bot]

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.

github-actions[bot] avatar Aug 12 '22 21:08 github-actions[bot]