DC.js Not selected at start -
my code this.
barchart .width(250) .height(200) .x(d3.scale.ordinal()) .xunits(dc.units.ordinal) .brushon(false) .colors(["#ffbf00","#ffbf00", "#ffbf00"]) .xaxislabel("fear") .dimension(feardim) .group(feardimgroup); i have made bar chart in dc.js.what want when first load page no bar of bar chart should selected.can that.is there method accomplish that?
the filter method work purpose. select bars match input supply.
for example, try:
barchart.filter(""); this filter non-blank bars.
example: http://jsfiddle.net/djmartin_umich/9vjhe/
dc.js
No comments:
Post a Comment