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

Method legendables

src/charts/pie-chart.js:537–543  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

535 }
536
537 legendables () {
538 return this.data().map((d, i) => {
539 const legendable = {name: d.key, data: d.value, others: d.others, chart: this};
540 legendable.color = this.getColor(d, i);
541 return legendable;
542 });
543 }
544
545 legendHighlight (d) {
546 this._highlightSliceFromLegendable(d, true);

Callers 2

renderMethod · 0.45
renderMethod · 0.45

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected