I'm plotting a basic bar chart with ordinal x-axis and metric plotted in y-axis. Now, it works good using this post
However, now I want to select only specific data points to show. Example : if my ordinal x-axis has - a, b & c. But, I need to show only - b & c.
Issue :
When I'm adding only b & c in the domain using the following code, even a is showing up in the background.
Code :
.x(d3.scale.ordinal().domain(["b", "c"])) // Need the empty val to offset the first value
.xUnits(dc.units.ordinal)
I have made a fiddle to show the issue here
Another place for more visibility would be the link here (Look for ordinal bar chart at the bottom - starting from California, London is excluded but still in background)
Is there a fix for this yet/or any workaround? Any approach/suggestions will be highly appreciated