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

Method xAxisMin

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

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

()

Source from the content-addressed store, hash-verified

849 * @returns {*}
850 */
851 xAxisMin () {
852 const m = min(this.data(), e => this.keyAccessor()(e));
853 return utils.subtract(m, this._xAxisPadding, this._xAxisPaddingUnit);
854 }
855
856 /**
857 * Calculates the maximum x value to display in the chart. Includes xAxisPadding if set.

Callers 1

_prepareXAxisMethod · 0.95

Calls 2

dataMethod · 0.80
keyAccessorMethod · 0.80

Tested by

no test coverage detected