How to display error message or data is not there message when query for the chart return empty row or row count less than 1 error\

Thanks
Santhosh S Samaka