You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "mmmml-zhao (via GitHub)" <gi...@apache.org> on 2023/08/28 07:59:27 UTC
[GitHub] [echarts] mmmml-zhao opened a new issue, #19048: [Bug] If the parameter universalTransition is set, animating Zoom will not be correct
mmmml-zhao opened a new issue, #19048:
URL: https://github.com/apache/echarts/issues/19048
### Version
5.4.2
### Link to Minimal Reproduction
https://codesandbox.io/s/clever-hamilton-n3jt3p?file=/src/Chart.tsx
### Steps to Reproduce
https://codesandbox.io/s/clever-hamilton-n3jt3p?file=/src/Chart.tsx
When mapping charts, when you click the add button, the animation often starts zooming in from zoom:1 instead of starting from the current chart state.
If the universalTransition property is commented out, the zoom animation will behave as expected, but the transition animations between charts will disappear.
### Current Behavior
When mapping charts, when you click the add button, the animation often starts zooming in from zoom:1 instead of starting from the current chart state.
If the universalTransition property is commented out, the zoom animation will behave as expected, but the transition animations between charts will disappear.
### Expected Behavior
When the universalTransition property is set, the zoom animation for mapping charts will behave as expected.
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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] [Bug] If the parameter universalTransition is set, animating Zoom will not be correct [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19048: [Bug] If the parameter universalTransition is set, animating Zoom will not be correct
URL: https://github.com/apache/echarts/issues/19048
--
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] [Bug] If the parameter universalTransition is set, animating Zoom will not be correct [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19048:
URL: https://github.com/apache/echarts/issues/19048#issuecomment-3229739110
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
[GitHub] [echarts] helgasoft commented on issue #19048: [Bug] If the parameter universalTransition is set, animating Zoom will not be correct
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19048:
URL: https://github.com/apache/echarts/issues/19048#issuecomment-1696151098
Yes, looks like a bug related to combination of animation and universalTransition .
Workaround - replace following three functions in your code:
```
const setMap = () => {
var op = mapOption();
op.animation= true; // restore animation for the transition
myChart.current.setOption(op, true);
};
const add = () => {
const options = myChart.current.getOption();
myChart.current.setOption({
animation: false,
series: [
{
zoom: Math.min(options.series[0].zoom + 1, 10)
}
]
});
};
const sub = () => {
const options = myChart.current.getOption();
myChart.current.setOption({
animation: false,
series: [
{
zoom: Math.max(options.series[0].zoom - 1,0)
}
]
});
};
```
--
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] [Bug] If the parameter universalTransition is set, animating Zoom will not be correct [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19048:
URL: https://github.com/apache/echarts/issues/19048#issuecomment-3250802387
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