if ((isFirst && !reversed) || (isLast && reversed)) {
                // Is the label spilling out to the left of the plot area?
                if (x + leftSide < plotLeft) {

                    // Align it to plot left