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

关于一个点问题(已解决) #550

Open
xcode126 opened this issue Jun 12, 2021 · 0 comments
Open

关于一个点问题(已解决) #550

xcode126 opened this issue Jun 12, 2021 · 0 comments

Comments

@xcode126
Copy link

关于一个点不显示问题,网上找了很多方案,大致都是说要去改源码的,但我觉得比较麻烦,说下我的解决方法:
我是判断如果我的列表只有一个值的话,就动态给添加一个空数据元素(value为负数),这样相当于是两个点,而第二个点的值是负数,那就会把第二个点绘制到x轴的下面,这样就看不到了,也就是默认显示了一个点带一根线,然后动态判断把这个线设置成白色即可
a855ff66768075231cba7b5bbc543f9
微信截图_20210612163019

;下面是截图:

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