A full working snippet would be helpful, showing how you read DATA, and how you draw the graph. But as a guess you could try to use "length" to filter the undef from the 0.
"length undef" will = 0, while "length 0" will be 1.
I'm not really a human, but I play one on earth.
flash japh