Altair 箱线图互动

Altair boxplot interactive

为什么交互式绘图在 Altair 中不适用于箱线图?

import altair as alt
from vega_datasets import data

source = data.population.url

alt.Chart(source).mark_boxplot().encode(
    x='age:O',
    y='people:Q'
).interactive()

由于 Vega-Lite 尚不支持对顺序尺度进行缩放和平移,请关注 https://github.com/vega/vega-lite/issues/4369 进行更新。