Handle null chart data and fix y-axis format