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

series折线图 symbolSize的样式不正常 #933

Open
4 tasks done
AlexL0ng opened this issue Jan 23, 2024 · 1 comment
Open
4 tasks done

series折线图 symbolSize的样式不正常 #933

AlexL0ng opened this issue Jan 23, 2024 · 1 comment

Comments

@AlexL0ng
Copy link

AlexL0ng commented Jan 23, 2024

提问前应该做的事

请确保提问前做了以下事,将完成的项目的 [] 改为 [x]

需提供的信息

将符合项的 [] 改为 [x],并补充需要的信息:

简单描述问题:

代码如下:

label: {
                  show: props.tips,
                  formatter: item => {
                    if (item.data.date === testExample[5]) {
                      return '{bg|测试测试测试}'
                    }
                    return ''
                  },
                  rich: {
                    bg: {
                      padding: 8,
                    },
                  },
                  backgroundColor: 'white',
                  borderRadius: 10,
                  distance: 10,
                },
                symbolSize: (item, data) => {
                  if (testExample.includes(item.date)) {
                    return 10
                  }

                  return 0
                },

符合条件的设置样式为设置大小10,正常情况下都是对的;
当testExample取到折线图的起始点的数据时;只渲染初始点,其他点的样式没有效果;但是鼠标悬停到testExample里面的其他点的时候会有样式显示,label也不显示

预期效果:

???
(如有需要请提供预期的图)

实际效果:

???
(如有需要请提供截图)

复现环境:

  • 在微信开发工具中存在该问题
  • 在真机上存在该问题
@AlexL0ng
Copy link
Author

今天测试换了渲染symbolSize的数据,现在都不渲染了;是不是因为数据量太大的原因?symbolSize:10的数据有9个;整个图要渲染的数据是2000+多个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant