dataCount graph filtered by a dimension
问题 I have a list of participants to various events as the data source eventid,participant_name 42,xavier 42,gordon 11,john ... by default, dataCount will say they are 3 participants, I need to display the number of events (so 2) I tried creating a dimension var event = ndx.dimension(function(d) { return d.eventid; }) but can't manage to use it in dataCount dc.dataCount(".dc-data-count") //.dimension(ndx) //working, but counts participants .dimension(event) // not working How do I do that? 回答1: