maxItems (maxItems) {
        if (!arguments.length) {
            return this._maxItems;
        }
        this._maxItems = utils.isNumber(maxItems) ? maxItems : undefined;
        return this;
    }
Maximum number of legend items to display
@param  {Number} [maxItems]
@return {HtmlLegend}