Altair v4.1.0 Release NotesRelease Date: 2020-04-01 // about 1 year ago
- Minimum Python version is now 3.6
- 🚀 Update Vega-Lite to version 4.8.1; many new features and bug fixes from Vega-Lite versions 4.1 through 4.8; see Vega-Lite Release Notes.
strokeDashencoding can now be used to control line styles (Example: Multi Series Line Chart
chart.save()now relies on altair_saver for more flexibility (#1943).
chart.serve(), and relies on altair_viewer to allow offline viewing of charts (#1988).
🐛 Bug Fixes
- 👌 Support Python 3.8 (#1958)
- 👌 Support multiple views in JupyterLab (#1986)
- 👌 Support numpy types within specifications (#1914)
- 👌 Support pandas nullable ints and string types (#1924)
Previous changes from v4.0.0
🚀 Altair Version 4.0.0 release
🔖 Version 4.0.0 is based on Vega-Lite version 4.0, which you can read about at
✅ It is the first version of Altair to drop Python 2 compatibility, and is tested
on Python 3.5 and newer.
👌 Support for interactive legends: (Example)
📱 Responsive chart width and height: (Example)
📱 Bins responsive to selections: (Example)
🆕 New pivot transform: (Example)
🆕 New Regression transform: (Example)
🆕 New LOESS transform: (Example)
🆕 New density transform: (Example)
Image mark (Example)
🆕 New default
htmlrenderer, directly compatible with Jupyter Notebook and
JupyterLab without the need for frontend extensions, as well as tools like
nbviewer and nbconvert, and related notebook environments such as Zeppelin,
0️⃣ Colab, Kaggle Kernels, and DataBricks. To enable the old default renderer, use:
👌 Support per-corner radius for bar marks: (Example)
Sort-by-field can now use the encoding name directly. So instead of
alt.Y('y:Q', sort=alt.EncodingSortField('x_field', order='descending'))
you can now use::
rangeStepargument to :class:
columnsare no longer valid chart properties, but
🚚 are moved to the encoding classes to which they refer.