dc.js multiple select menu with checkboxes
问题 I have a dataset which consists of 5 columns -> country, id, value and sector. I was able to create a row chart in dc.js using the value and country, where country is my dimension. var rowChart = dc.rowChart('#rowChart'); d3.csv('data.csv', function(data){ data.forEach(function(d){ d.country = d.country; d.id = d.id; d.value = +d.value; d.sector = d.sector; }); var height = 300; var width = 300; var ndx = crossfilter(data) var countryDim = data.dimension(function (d) { return d.country; });