_chart = (
    alt.Chart(table)
    .mark_bar()
    .encode(
        x=alt.X("A", type="quantitative", bin=True, title="A"),
        y=alt.Y("count()", type="quantitative", title="Number of records"),
        tooltip=[
            alt.Tooltip(
                "A",
                type="quantitative",
                bin=True,
                title="A",
            ),
            alt.Tooltip(
                "count()",
                type="quantitative",
                format=",.0f",
                title="Number of records",
            ),
        ],
    ).properties(width="container").configure_view(stroke=None)
)
_chart