You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/09/25 03:59:08 UTC
[GitHub] [incubator-echarts] larrykkk edited a comment on issue #5833: How
to display "No Data" message on echart
larrykkk edited a comment on issue #5833: How to display "No Data" message on echart
URL: https://github.com/apache/incubator-echarts/issues/5833#issuecomment-534840669
use the data.length to control Echart option
```
title: {
show: answerCountArr.length === 0,
textStyle: {
color: "grey",
fontSize: 20
},
text: "No data",
left: "center",
top: "center"
},
xAxis: {
show: answerCountArr.length,
//...
},
yAxis: {
show: answerCountArr.length,
//...
},
```
if data.length is false then chart will only show "No data"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org