I changed
b$series(name = name, data = d$Number, stack = d$Category[[1]])
to
b$series(name = name, data = d$Number, stack = d$Date[[1]])
Took little time to understand. I want to stack by Date so have to choose date here.
But the hide/unhide is not rescaling, instead disappearing the bar corresponding to the category.