(id)
| 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(); |
no test coverage detected
searching dependent graphs…