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

折线图 不连接 null 值,且showSymbol:false,当有点左右都为 null 值时这个点就看不见了只有 tooltip hover才展示 #20102

Open
Pinkman-Xin opened this issue Jul 1, 2024 · 3 comments
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@Pinkman-Xin
Copy link

Version

5.2.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQCGAHhAM73EC-ANGsRXIATQqhKxs1AGZgGAZgCk9PuPIUAFrNj0ALEpUkARsDCYAtvP3F0AYxhhGEaABlGh6tkJhSAV2rcDTBxjZlFrWClqRjAfUmow8XQ2RgA3agBBNgBJM0YaUS5wwvReYmZ01jYEkjAATxB47Rto6gpgUlrlcOMfaCFGDoBxRgIIxmw2agN0fodCAG16AFkYZW0AFT81-gB1aiFt9fUfbYAxcm2AZWir3voAXQDiWor2avQ6hoYU8a2npNoEGoVVg83CYkS0EYZka9AAorkINguokMPVYdgnNQUYk2A4bABrBjrEzjHHiWaMBYARgATAAGHiwalyWlM6A-bDYJksnTsznc2C0uSMoXU-n3aYkNjqYAAd0utTMxk8UnGkyKfGIjy4AG4gA

Steps to Reproduce

option = {
tooltip: {
trigger: 'axis'
},

grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
name: 'Email',
type: 'line',
stack: 'Total',
data: [120, 132, null, 134, null, 230, 210],
showSymbol:false
},

]
};

Current Behavior

https://echarts.apache.org/examples/zh/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQCGAHhAM73EC-ANGsRXIATQqhKxs1AGZgGAZgCk9PuPIUAFrNj0ALEpUkARsDCYAtvP3F0AYxhhGEaABlGh6tkJhSAV2rcDTBxjZlFrWClqRjAfUmow8XQ2RgA3agBBNgBJM0YaUS5wwvReYmZ01jYEkjAATxB47Rto6gpgUlrlcOMfaCFGDoBxRgIIxmw2agN0fodCAG16AFkYZW0AFT81-gB1aiFt9fUfbYAxcm2AZWir3voAXQDiWor2avQ6hoYU8a2npNoEGoVVg83CYkS0EYZka9AAorkINguokMPVYdgnNQUYk2A4bABrBjrEzjHHiWaMBYARgATAAGHiwalyWlM6A-bDYJksnTsznc2C0uSMoXU-n3aYkNjqYAAd0utTMxk8UnGkyKfGIjy4AG4gA

折线图 不连接 null 值,且showSymbol:false,当有点左右都为 null 值时这个点就看不见了只有 tooltip hover才展示

Expected Behavior

需要当某个点左右都为 null值时也能展示出来

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@Pinkman-Xin Pinkman-Xin added the bug label Jul 1, 2024
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Jul 1, 2024
Copy link

echarts-bot bot commented Jul 1, 2024

@Pinkman-Xin 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

The line chart does not connect null values, and showSymbol:false. When both the left and right sides of a point are null values, the point will be invisible and will only be displayed on tooltip hover.

@helgasoft
Copy link

so you set showSymbol:false, but want to see some symbols ?! 🧐

@linghaoSu
Copy link
Member

尝试给 showSymbol 加了一个 'single' 的值,当设置为 single 且 connectNulls 为 false,在当前 symbol 前后值为 null 时且 ,显示对应的 symbol,其他的 symbol 仅在 tooltip hover 时显示

#18815

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

3 participants