larrykkk commented 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: "沒有資料", 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
