I think so, the real problem is a "Cero Division Error", the chart is trying the divide 0 on the numdivlines (numdivlines > 0) .. 0/10 the result is the print NaNM labels in the axis