legend as 0 for data
moved legend to beginning of array