You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "wuyangchn (via GitHub)" <gi...@apache.org> on 2023/09/13 09:56:27 UTC
[GitHub] [echarts] wuyangchn opened a new issue, #19114: [Feature] Get real splitnumber and interval of a axis
wuyangchn opened a new issue, #19114:
URL: https://github.com/apache/echarts/issues/19114
### What problem does this feature solve?
The default splitNumber for a axis like xAxis or yAxis is 5. However, as mentioned in the documentation, this number may be adjusted based on readability. What I want is get the real number of splits after adjustment, which is always 5 when I check it by chart.getOption(). And similarly, I think including interval in the return of getOption() funciton is also helpful. I cannot get the real interval currently possibly because I don't define it.
Thanks in advance.
### What does the proposed API look like?
Just change it in the return of getOption() function. Something like:
option = chart.getOption();
option = {
xAxis: {
splitNumber : 5 // response to the adjustment
interval: 0.001 // response to the adjustment
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] wuyangchn closed issue #19114: [Feature] Get real splitnumber and interval of a axis
Posted by "wuyangchn (via GitHub)" <gi...@apache.org>.
wuyangchn closed issue #19114: [Feature] Get real splitnumber and interval of a axis
URL: https://github.com/apache/echarts/issues/19114
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] wuyangchn commented on issue #19114: [Feature] Get real splitnumber and interval of a axis
Posted by "wuyangchn (via GitHub)" <gi...@apache.org>.
wuyangchn commented on issue #19114:
URL: https://github.com/apache/echarts/issues/19114#issuecomment-1719205875
Sloved. Although there is no documented way to access the properties of the axes currently, it is still possible to get it in the echart instance. Thanks kikon.
https://stackoverflow.com/a/77102205/22143697
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org