do not display pie chart if there is no valid data.