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

Method valueAccessor

src/base/base-mixin.js:1257–1263  ·  view source on GitHub ↗

* Set or get the value accessor function. The value accessor function is used to retrieve the * value from the crossfilter group. Group values are used differently in different charts, for * example values correspond to slice sizes in a pie chart and y axis positions in a grid * coord

(valueAccessor)

Source from the content-addressed store, hash-verified

1255 * @returns {Function|BaseMixin}
1256 */
1257 valueAccessor (valueAccessor) {
1258 if (!arguments.length) {
1259 return this._valueAccessor;
1260 }
1261 this._valueAccessor = valueAccessor;
1262 return this;
1263 }
1264
1265 /**
1266 * Set or get the label function. The chart class will use this function to render labels for each

Callers 15

constructorMethod · 0.95
yAxisMinMethod · 0.80
yAxisMaxMethod · 0.80
_prepareValuesMethod · 0.80
groupMethod · 0.80
constructorMethod · 0.80
cappedValueAccessorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
_bubbleYMethod · 0.80
_doRedrawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected