This example demonstrates using range and focus charts to scroll an ordinal bar chart with too many items. Instead of filtering, the brush only changes the view; bars are clickable as in an ordinary ordinal bar chart.

Since ordinal-scale charts are not ordinarily brushable or zoomable, the example maps the ordinal values to integers, and then maps the integers back to the values for the axis ticks.