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

Function buildPieChart

spec/data-addition-spec.js:21–36  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

19 let chart;
20
21 function buildPieChart (id) {
22 const div = appendChartID(id);
23 div.append('a').attr('class', 'reset').style('display', 'none');
24 div.append('span').attr('class', 'filter').style('display', 'none');
25 const pieChart = new dc.PieChart(`#${id}`);
26 pieChart.dimension(valueDimension).group(valueGroup)
27 .width(width)
28 .height(height)
29 .radius(radius)
30 .ordering(kv => kv.key)
31 .transitionDuration(0);
32 pieChart.render();
33 baseData.add(moreData);
34 pieChart.expireCache();
35 return pieChart;
36 }
37 beforeEach(() => {
38 valueDimension = baseData.dimension(d => d.value);
39 valueGroup = valueDimension.group();

Callers 1

Calls 10

appendChartIDFunction · 0.85
transitionDurationMethod · 0.80
orderingMethod · 0.80
expireCacheMethod · 0.80
radiusMethod · 0.45
heightMethod · 0.45
widthMethod · 0.45
groupMethod · 0.45
dimensionMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…