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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org