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

[Bug] tree图节点展开收缩后折线有残留 #16566

Closed
mdkjs opened this issue Feb 23, 2022 · 2 comments · Fixed by #16548
Closed

[Bug] tree图节点展开收缩后折线有残留 #16566

mdkjs opened this issue Feb 23, 2022 · 2 comments · Fixed by #16548

Comments

@mdkjs
Copy link

mdkjs commented Feb 23, 2022

Version

5.2.2

Link to Minimal Reproduction

No response

Steps to Reproduce

import * as echarts from 'echarts';

var ROOT_PATH =
'https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/examples';

var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;

myChart.showLoading();
$.get(ROOT_PATH + '/data/asset/data/flare.json', function (data) {
myChart.hideLoading();
myChart.setOption(
(option = {
tooltip: {
trigger: 'item',
triggerOn: 'mousemove'
},
series: [
{
type: 'tree',
data: [data],
left: '2%',
right: '2%',
top: '8%',
bottom: '20%',
symbol: 'emptyCircle',
orient: 'vertical',
edgeShape: 'polyline',
expandAndCollapse: true,
label: {
position: 'top',
rotate: -90,
verticalAlign: 'middle',
align: 'right',
fontSize: 9
},
leaves: {
label: {
position: 'bottom',
rotate: -90,
verticalAlign: 'middle',
align: 'left'
}
},
animationDurationUpdate: 750
}
]
})
);
});

option && myChart.setOption(option);

Current Behavior

节点展开收缩折线有残留

Expected Behavior

节点展开收缩折线无残留

Environment

- OS: windows 10
- Browser: Chrome
- Framework: Vue@2

Any additional comments?

No response

@mdkjs mdkjs added the bug label Feb 23, 2022
@echarts-bot echarts-bot bot added pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Feb 23, 2022
@echarts-bot
Copy link

echarts-bot bot commented Feb 23, 2022

@mdkjs 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

[Bug] Tree chart nodes have remnants after they are expanded and contracted

@susiwen8
Copy link
Contributor

susiwen8 commented Mar 2, 2022

Duplicate #15923

@susiwen8 susiwen8 closed this as completed Mar 2, 2022
@plainheart plainheart linked a pull request Jun 7, 2022 that will close this issue
6 tasks
@plainheart plainheart added topic: tree resolved and removed pending We are not sure about whether this is a bug/new feature. labels Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants