Declarative statistical visualization library for Python
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Published by jakevdp over 4 years ago
strokeDash
encoding 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.show()
method replaces chart.serve()
, and relies on altair_viewer to allow offline viewing of charts (#1988).##Maintenance
Published by jakevdp almost 5 years ago
Version 4.0.0 is based on Vega-Lite version 4.0, which you can read about at
https://github.com/vega/vega-lite/releases/tag/v4.0.0.
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 html
renderer, 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,
Colab, Kaggle Kernels, and DataBricks. To enable the old default renderer, use:
alt.renderers.enable('mimetype')
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::
alt.Y('y:Q', sort="-x")
The rangeStep
argument to :class:Scale
and :meth:Chart.configure_scale
is deprecated.
instead, use chart.properties(width={"step": rangeStep})
or
chart.configure_view(step=rangeStep)
.
align
, center
, spacing
, and columns
are no longer valid chart properties, but
are moved to the encoding classes to which they refer.
Published by jakevdp almost 5 years ago
released Nov 27, 2019
Last release to support Python 2
html
renderer which works across frontends (#1793):G
shorthand for geojson type (#1714)alt.sequence
, alt.graticule
,alt.sphere()
(#1667, #1687)__geo_interface__
(#1664)pickle
and copy.deepcopy
for chart objects (#1805)count()
within transform_joinaggregate()
(#1751)LayerChart.add_selection
(#1794)project()
method (#1717)Published by jakevdp about 5 years ago
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:
add_selection
methods now delegate to sub-charts. Previouslymark_*()
methods removed from LayerChart (#1607)alt.LayerChart
no longer has mark_*()
methods, because they neverPublished by jakevdp over 5 years ago
better handling of datetimes and timezones (#1053)
all inline datasets are now converted to named datasets and stored at the
top level of the chart. This behavior can be disabled by setting
alt.data_transformers.consolidate_datasets = False
(#951 & #1046)
more streamlined shorthand syntax for window transforms (#957)
alt.SortField
renamed to alt.EncodingSortField
andalt.WindowSortField
renamed to alt.SortField
(#923)Fixed serialization of logical operands on selections within
transform_filter()
: (#1075)
Fixed sphinx issue which embedded chart specs twice (#1088)
Avoid Selenium import until it is actually needed (#982)
add a scale_factor
argument to chart.save()
to allow the
size/resolution of saved figures to be adjusted. (#918)
add an add_selection()
method to add selections to charts (#832)
add chart.serve()
and chart.display()
methods for more flexiblity
in displaying charts (#831)
allow multiple fields to be passed to encodings such as tooltip
and detail
(#830)
make timeUnit
specifications more succinct, by parsing them in a manner
similar to aggregates (#866)
make to_json()
and to_csv()
have deterministic filenames, so in json
mode a single datasets will lead to a single on-disk serialization (#862)
make data
the first argument for all compound chart types to match the
semantics of alt.Chart
(this includes alt.FacetChart
,
alt.LayerChart
, alt.RepeatChart
, alt.VConcatChart
, and
alt.HConcatChart
) (#895).
update vega-lite to version 2.4.3 (#836)
alt.MarkProperties
is now alt.MarkConfig
Published by jakevdp almost 8 years ago
Nov 7, 2016
Chart.serve
methodaltair.expr
machinery to specify transformations and filteringsChart.savechart
method, which can output JSON, HTML, and (if Node