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 enter image description here

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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -