MCPcopy
hub / github.com/dc-js/dc.js / xAxisMax

Method xAxisMax

src/base/coordinate-grid-mixin.js:860–863  ·  view source on GitHub ↗

* Calculates the maximum x value to display in the chart. Includes xAxisPadding if set. * @returns {*}

()

Source from the content-addressed store, hash-verified

858 * @returns {*}
859 */
860 xAxisMax () {
861 const m = max(this.data(), e => this.keyAccessor()(e));
862 return utils.add(m, this._xAxisPadding, this._xAxisPaddingUnit);
863 }
864
865 /**
866 * Calculates the minimum y value to display in the chart. Includes yAxisPadding if set.

Callers 1

_prepareXAxisMethod · 0.95

Calls 2

dataMethod · 0.80
keyAccessorMethod · 0.80

Tested by

no test coverage detected