Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(line): line chart animation is not replayed when calling setOption twice #15581

Closed
Ovilia opened this issue Aug 23, 2021 · 0 comments · Fixed by #15599
Closed

fix(line): line chart animation is not replayed when calling setOption twice #15581

Ovilia opened this issue Aug 23, 2021 · 0 comments · Fixed by #15599
Assignees
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature. topic: line

Comments

@Ovilia
Copy link
Contributor

Ovilia commented Aug 23, 2021

Version

5.1.2

Steps to reproduce

option = {
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line',
        areaStyle: {}
    }],
    animationDuration: 5000,
    animationDurationUpdate: 5000
};

setTimeout(function() {
    myChart.setOption(option);
}, 1000);

What is expected?

Line animation is continued at the current position and play to the end.

What is actually happening?

Line animation is jumped to the end after 1 second.

@echarts-bot echarts-bot bot added bug en This issue is in English labels Aug 23, 2021
@Ovilia Ovilia self-assigned this Aug 23, 2021
@Ovilia Ovilia added the pending We are not sure about whether this is a bug/new feature. label Aug 23, 2021
@Ovilia Ovilia linked a pull request Aug 25, 2021 that will close this issue
6 tasks
@Ovilia Ovilia added this to the 5.2 milestone Aug 25, 2021
@pissang pissang modified the milestones: 5.2, 5.2.1 Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature. topic: line
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants