If there's no data, I don't show the graph - a simple message to the user saying "No data is available for the selection you have made" or words to that effect. Usually in the div that would've contained the graph had a graph been available. If it's all done via ajax, then the message gets shown in a modal over the page and the graph is left in it's default, empty, state.