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

Function nthChart

spec/scatter-plot-spec.js:482–505  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

480 });
481
482 function nthChart (n) {
483 const subChart = d3.select(compositeChart.selectAll('g.sub').nodes()[n]);
484
485 subChart.expectPlotSymbolsToHaveClass = function (className) {
486 subChart.selectAll('path.symbol').each(function () {
487 expect(d3.select(this).classed(className)).toBeTruthy();
488 });
489 };
490
491 subChart.expectPlotSymbolsToHaveSize = function (size) {
492 const match = matchSymbolSize(size);
493 subChart.selectAll('path.symbol').each(function () {
494 expect(match.apply(this)).toBeTruthy();
495 });
496 };
497
498 subChart.expectPlotSymbolsNotToHaveClass = function (className) {
499 subChart.selectAll('path.symbol').each(function () {
500 expect(d3.select(this).classed(className)).toBeFalsy();
501 });
502 };
503
504 return subChart;
505 }
506 });
507 describe('with ordinal axes', () => {
508 beforeEach(() => {

Callers 1

Calls 3

matchSymbolSizeFunction · 0.85
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…