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

Method keyAccessor

src/base/base-mixin.js:1236–1242  ·  view source on GitHub ↗

* Set or get the key accessor function. The key accessor function is used to retrieve the key * value from the crossfilter group. Key values are used differently in different charts, for * example keys correspond to slices in a pie chart and x axis positions in a grid coordinate chart.

(keyAccessor)

Source from the content-addressed store, hash-verified

1234 * @returns {Function|BaseMixin}
1235 */
1236 keyAccessor (keyAccessor) {
1237 if (!arguments.length) {
1238 return this._keyAccessor;
1239 }
1240 this._keyAccessor = keyAccessor;
1241 return this;
1242 }
1243
1244 /**
1245 * Set or get the value accessor function. The value accessor function is used to retrieve the

Callers 15

constructorMethod · 0.95
onClickMethod · 0.95
constructorMethod · 0.80
_ordinalXDomainMethod · 0.80
xAxisMinMethod · 0.80
xAxisMaxMethod · 0.80
constructorMethod · 0.80
_prepareValuesMethod · 0.80
_ordinalXDomainMethod · 0.80
constructorMethod · 0.80
cappedKeyAccessorMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected