Pie chart legend in dc.js 1.7 not showing up
问题 I'm trying to create a pie chart legend in dc.js. However, there is no legend. It just... doesn't show up. Everything appears the same as before I used the legend command. Here is the JSBin Here is the legend code: .legend(dc.legend().x(80).y(70).itemHeight(13).gap(5)); Here is the rest of the relevant code: var companyDimension = data.dimension(function(d) {return d.company;}); var totalSalesByCompany = companyDimension.group().reduceSum(function(d) {return d.total;}); var