Fix errors when trying to draw the chart and we have no data due to user-chosen constraints