I’ve got a bar plot (built with Plot) with a lot of bars that’s responsive to a slider to control the number of bars that are displayed. It works but the bars jump around when the slider is moved In particular, the position of the left edge of the left most bar is volatile. I’ve fiddled with options involving margin and padding and inset but haven’t found the magic incantation to prevent this. Here’s a simplified illustration:
Note that this is easy to accomplish with D3. The fundamental difference seems to be that I’ve got more direct control over not just the domain, but the range of the domain - i.e., the the numerical values that d3.scaleBand
maps the ordinal domain to. Here’s the D3 implementation:
But, again, I wonder if I can accomplish this with Plot?