javascript - How to prevent my crossfilter from selecting nothing - dc.js -
i'm working on project using dc.js , don't want crossfilter render unless data selected. currently, possible
is there way avoid happening? want @ least 1 bar have selected crossfilter.
i found answer. need add following 2 lines bar chart:
.round(dc.round.floor) .alwaysuserounding(true)
if bar chart has property .centerbar(true), should use following instead:
.round(function(n) { return math.floor(n) + 0.5 }) .alwaysuserounding(true)
Comments
Post a Comment