Hi Sushanta,
There is no OOB way to hide the chart web part when there is no data in the web part.
I recommend to use JavaScript object model to get the data source of the chart web part and then check if whether there is data after applying the query string filter for the data source.
If there is no data, then hide the web part programmatically.
If the data source is SharePoint list, you can refer to the link below about how to retrieve list items:
https://msdn.microsoft.com/en-us/library/office/hh185007%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
Or you can create your own custom chart web part with the function that you need.
Thanks,
Victoria