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

Function buildLineChart

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

Source from the content-addressed store, hash-verified

65 let chart;
66
67 function buildLineChart (id) {
68 appendChartID(id);
69 const lineChart = new dc.LineChart(`#${id}`);
70 lineChart.dimension(timeDimension).group(timeGroup)
71 .width(width).height(height)
72 .x(d3.scaleUtc().domain([makeDate(2012, 4, 20), makeDate(2012, 7, 15)]))
73 .transitionDuration(0)
74 .xUnits(d3.utcDays)
75 .brushOn(false)
76 .renderArea(true)
77 .renderTitle(true);
78 lineChart.render();
79 baseData.add(moreData);
80 lineChart.expireCache();
81 return lineChart;
82 }
83 beforeEach(() => {
84 timeDimension = baseData.dimension(d => d.dd);
85 timeGroup = timeDimension.group();

Callers 1

Calls 14

appendChartIDFunction · 0.85
makeDateFunction · 0.85
renderTitleMethod · 0.80
renderAreaMethod · 0.80
brushOnMethod · 0.80
xUnitsMethod · 0.80
transitionDurationMethod · 0.80
expireCacheMethod · 0.80
xMethod · 0.45
heightMethod · 0.45
widthMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…