} else {
                // Is the label spilling out to the right of the plot area?
                if (x + rightSide > plotRight) {

                    // Align it to plot right