You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "kim1124 (via GitHub)" <gi...@apache.org> on 2023/12/04 08:54:01 UTC
[I] [Feature] Request to add events that are called before running datazoom. [echarts]
kim1124 opened a new issue, #19356:
URL: https://github.com/apache/echarts/issues/19356
### What problem does this feature solve?
It would be nice to have an event handler called before running datazoom. If you set the zoom range to fit only one data, such as a screen shot, the meaning of zoom will fade, so I want to block
<img width="687" alt="onedata_zoom jpeg" src="https://github.com/apache/echarts/assets/23370390/16b62b8d-8aac-4327-bd78-1eafbf03b78f">
If the return value of the event handler called before executing datazoom is true, and if it is false, it will be more convenient to use it if datazoom is blocked.
### What does the proposed API look like?
echarts.on('beforeDataZoom', (params) => {
// Set the parameters equal to those of the datazoom handler.
const _startIdx = params.batch[0].startValue
const _endIdx = params.batch[0].endValue
// Run datazoom if the return value is true, and do not run datazoom if false.
return _startIdx < _endIdx
})
--
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
Re: [I] [Feature] Request to add events that are called before running datazoom. [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19356:
URL: https://github.com/apache/echarts/issues/19356#issuecomment-3662381441
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!
--
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
Re: [I] [Feature] Request to add events that are called before running datazoom. [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19356:
URL: https://github.com/apache/echarts/issues/19356#issuecomment-1848797996
Zoom attributes are available at any time, no need for events - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcSYOAHmHrAOQBewwAtrAGSwDGWELA1hQL4A0aWMQCCxCAGdyqdOjABPEPkosAhkQDmwAE5yKAmbAAmaleQDaFALIw9lACoBXHLYoB1HIZd2AFg5cAxLQgXAGU1UIdoCgBdQX5BOVEJKUFZBSUKADcVLCcKOP1YcRwgnElYM1TkKvRjMFMKgEYAVgAGPlgAJgBmdq7OgBYOzsaADg7G7uaJgYB2YYA2VujCg3lFcgpxVTAiLXyDHkEVwTqVAC1aOgIjngBuFDo5AGFvFS0wADoYAAoKNg43A6ADNIixIDBYD8cJkwABKarobJaWCgBCwJ6vd5fdQ4MDWQw4LA_OHfcBQaCfM6XehmZYPdCYt4fT7FMAAeXJvyQGAg2HwhBIZEoNHomwA1KBWfUPgA1HJOcUUSiSkCfHDQQzy3I4Hg8OEofVAA).
📌 please close issue if problem solved.
--
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
Re: [I] [Feature] Request to add events that are called before running datazoom. [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19356: [Feature] Request to add events that are called before running datazoom.
URL: https://github.com/apache/echarts/issues/19356
--
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
Re: [I] [Feature] Request to add events that are called before running datazoom. [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19356:
URL: https://github.com/apache/echarts/issues/19356#issuecomment-3634281493
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.
--
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