Ensure that during measure, data is an object before assigning a fill color