Proper way to signal no data

I have a line chart where the user can select the x range. A callback then requests data for the given x range from a database and displays it.

However, there may not be any data for the chosen x range, resulting in an empty graph (see below), which looks a bit clumsy. What would be a good way to signal the user that there is no data for the selected x range?

I think you can add the judgment of the empty data set in the callback of updating the data. Then remind your users by modifying some styles, such as hiding the axis when there is no data.