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

Method yAxisMax

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

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

()

Source from the content-addressed store, hash-verified

876 * @returns {*}
877 */
878 yAxisMax () {
879 const m = max(this.data(), e => this.valueAccessor()(e));
880 return utils.add(m, this._yAxisPadding);
881 }
882
883 /**
884 * Set or get y axis padding for the elastic y axis. The padding will be added to the top and

Callers 1

_prepareYAxisMethod · 0.95

Calls 2

dataMethod · 0.80
valueAccessorMethod · 0.80

Tested by

no test coverage detected