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