Replied on SO at python - Rect glyphs on a categorical axis behave unexpectedly when updating axis range via CustomJS - Bokeh - Stack Overflow, opened a bug at [BUG] Misplaced Rects when using incomplete categorical ranges · Issue #10219 · bokeh/bokeh · GitHub