echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] yAxis.interval增加Function形式的参数

Open kkkisme opened this issue 3 years ago • 2 comments

What problem does this feature solve?

https://echarts.apache.org/zh/option.html#yAxis.interval 希望yAxis.interval 可以通过Function来设置,参数和https://echarts.apache.org/zh/option.html#yAxis.min的Function一样

What does the proposed API look like?

interval: function (value:  {max, min}) {
    return Math.ceil((100 - min) / 3)
}

kkkisme avatar May 18 '22 11:05 kkkisme

@kkkisme It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Feature] yAxis.interval adds parameters in the form of Function

BODY

What problem does this feature solve?

https://echarts.apache.org/en/option.html#yAxis.interval Hope that yAxis.interval can be set by Function, the parameters are the same as Functions like https://echarts.apache.org/zh/option.html#yAxis.min

What does the proposed API look like?

interval: function (value: {max, min}) {
    return Math.ceil((100 - min) / 3)
}

echarts-bot[bot] avatar May 18 '22 11:05 echarts-bot[bot]

This issue has been automatically marked as stale because it did not have 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 issue.

github-actions[bot] avatar May 17 '24 21:05 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar May 25 '24 21:05 github-actions[bot]