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

可以添加空数据时设置view吗 #182

Open
zzl313703419 opened this issue Sep 22, 2023 · 5 comments
Open

可以添加空数据时设置view吗 #182

zzl313703419 opened this issue Sep 22, 2023 · 5 comments
Labels

Comments

@zzl313703419
Copy link

当图表没有数据时会一片空白,对这部分有没有方法可以自己设定么

@AAChartModel
Copy link
Owner

AAChartModel commented Sep 22, 2023

Highcharts 有空数据时的自定义显示效果, 但是效果相当简陋, 并且还要引入额外的模块

<script src="https://code.highcharts.com/modules/no-data-to-display.js"></script>

参考:

@AAChartModel
Copy link
Owner

你其实可以自己判断数据是否为空, 然后添加一个自定义原生的 ViewAAChartView 之上.

@zzl313703419
Copy link
Author

确实可以 不过感觉不太友好 另外y轴上面可以加个单位放置吗 , 一般那个位置放单位比较多

@AAChartModel
Copy link
Owner

另外y轴上面可以加个单位放置吗

这个 demo 中有示例, 你查查看.

@AAChartModel
Copy link
Owner

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

No branches or pull requests

2 participants