When the labels array has a single element and offsetGridLines is undefined, a division by 0 occurred.