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

Function legendText

spec/composite-chart-spec.js:358–360  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

356
357 it('should generate legend labels with their associated group text', () => {
358 function legendText (n) {
359 return d3.select(chart.selectAll('g.dc-legend g.dc-legend-item text').nodes()[n]).text();
360 }
361 expect(legendText(0)).toBe('Date Value Group Bar');
362 expect(legendText(1)).toBe('Date ID Group');
363 expect(legendText(2)).toBe('Date Value Group Line 1');

Callers 1

Calls 2

selectMethod · 0.80
selectAllMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…