Altair v3.2.0 Release NotesRelease Date: 2019-08-05 // 4 months ago
🔖 Version 3.2.0 (released August 5, 2019)
🚀 Upgraded to Vega-Lite version 3.4 (See Vega-Lite 3.4 Release Notes).
Following are changes to Altair in addition to those that came with VL 3.4:
- Selector values can be used directly in expressions (#1599)
- Top-level chart repr is now truncated to improve readability of error
🐛 Bug Fixes
add_selectionmethods now delegate to sub-charts. Previously
they produced invalid charts (#1607)
- 🚚 Unsupported
mark_*()methods removed from LayerChart (#1607)
- 🆕 New encoding channels are properly parsed (#1597)
- Data context is propagated when encodings are specified as lists (#1587)
alt.LayerChartno longer has
mark_*()methods, because they never
produced valid chart specifications) (#1607)
Previous changes from v3.1.0
⚡️ Update includes full compatibility with version 3.3 of Vega-Lite.
➕ Added support for vega themes via
alt.renderers.disable_max_rows()method for disabling the maximum rows check (#1538)
👌 Improved user-facing warnings/errors around layering and faceting (#1535).
dataargument is now properly handled by
🚚 Compound charts (layer, concat, hconcat, vconcat) now move data to the top level by default. In particular, this means that the
facet()method can now be called directly on a layered chart without having to change how data is specified. (#1521)
mark_*()methods. If a layer specifies a mark at the top level, all child charts will inherit it (unless they override it explicitly).
alt.Chart.facet()now handles wrapped facets; for example:
altair/examples/us_population_over_time_facet.pyfor a more complete example.
🐛 Bug fixes
chart.save()respect the data transformer setting (#1538)
🛠 Fixed a deserialization bug for certain chart specs in schemapi (#1543)
alt.Chart.facet()now accepts a wrapped facet encoding as a first positional argument, rather than a row encoding. The following are examples of old invocations, and the equivalent new invocations:
chart.facet(row='col1', column='col2'): unchanged
chart.facet('col1', 'col2'): change to
chart.facet('col1'): change to
In each case, the new invocations are compatible back to Altair 2.X.
Several of the encoding channels added in 3.0 have had their capitalization corrected to better match the names used in the schema: