Altair

Latest version: v5.3.0

Safety actively analyzes 630406 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

5.0.0

What's Changed


- Update Vega-Lite from version 4.17.0 to version 5.8.0; see [Vega-Lite Release Notes](https://github.com/vega/vega-lite/releases).

Enhancements

- As described in the release notes for [Vega-Lite 5.0.0](https://github.com/vega/vega-lite/releases/tag/v5.0.0), the primary change in this release of Altair is the introduction of parameters. There are two types of parameters, selection parameters and variable parameters. Variable parameters are new to Altair, and while selections are not new, much of the old terminology has been deprecated. See [Slider Cutoff](https://altair-viz.github.io/gallery/slider_cutoff.html) for an application of variable parameters (#2528).
- Grouped bar charts and jitter are now supported using offset channels, see [Grouped Bar Chart with xOffset](https://altair-viz.github.io/gallery/grouped_bar_chart2.html) and [Strip Plot Jitter](https://altair-viz.github.io/gallery/strip_plot_jitter.html).
- [`vl-convert`](https://github.com/vega/vl-convert) is now used as the default backend for saving Altair charts as svg and png files, which simplifies saving chart as it does not require external dependencies like `altair_saver` does (#2701). Currently, `altair_saver` does not support Altair 5 and it is recommended to switch to [`vl-convert`](https://github.com/vega/vl-convert). See [PNG, SVG, and PDF format](https://altair-viz.github.io/user_guide/saving_charts.html#png-svg-and-pdf-format) for more details.
- Saving charts with HTML inline is now supported without having `altair_saver` installed (2807).
- The default chart width was changed from `400` to `300` (2785).
- Ordered pandas categorical data are now automatically encoded as sorted ordinal data (2522)
- The `Title` and `Impute` aliases were added for `TitleParams` and `ImputeParams`, respectively (2732).
- The documentation page has been revamped, both in terms of appearance and content.
- More informative autocompletion by removing deprecated methods (2814) and for editors that rely on type hints (e.g. VS Code) we added support for completion in method chains (2846) and extended keyword completion to cover additional methods (2920).
- Substantially improved error handling. Both in terms of finding the more relevant error (2842), and in terms of improving the formatting and clarity of the error messages (2824, 2568, 2979, 3009).
- Include experimental support for the DataFrame Interchange Protocol (through `__dataframe__` attribute). This requires `pyarrow>=11.0.0` (2888).
- Support data type inference for columns with special characters (2905).
- Responsive width support using `width="container"` when saving charts to html or displaying them with the default `html` renderer (2867).

Grammar Changes

- Channel options can now be set via a more convenient method-based syntax in addition to the previous attribute-based syntax. For example, instead of `alt.X(..., bin=alt.Bin(...))` it is now recommend to use `alt.X(...).bin(...)`) (2795). See [Method-Based Syntax](https://altair-viz.github.io/user_guide/encodings/index.html#method-based-attribute-setting) for details.
- `selection_single` and `selection_multi` are now deprecated; use `selection_point` instead. Similarly, `type=point` should be used instead of `type=single` and `type=multi`.
- `add_selection` is deprecated; use `add_params` instead.
- The `selection` keyword argument must in many cases be replaced by `param` (e.g., when specifying a filter transform).
- The `empty` keyword argument for a selection parameter should be specified as `True` or `False` instead of `all` or `none`, respectively.
- The `init` keyword argument for a parameter is deprecated; use `value` instead.

Bug Fixes

- Displaying a chart not longer changes the shorthand syntax of the stored spec (2813).
- Fixed `disable_debug_mode` (2851).
- Fixed issue where the webdriver was not working with Firefox's geckodriver (2466).
- Dynamically determine the jsonschema validator to avoid issues with recent jsonschema versions (2812).

Backward-Incompatible Changes

- Colons in column names must now be escaped to remove any ambiguity with encoding types. You now need to write `"column\:name"` instead of `"column:name"` (2824).
- Removed the Vega (v5) wrappers and deprecate rendering in Vega mode (save Chart as Vega format is still allowed) (2829).
- Removed the Vega-Lite 3 and 4 wrappers (2847).
- Removed the deprecated datasets.py (3010).
- In regards to the grammar changes listed above, the old terminology will still work in many basic cases. On the other hand, if that old terminology gets used at a lower level, then it most likely will not work. For example, in the current version of [Scatter Plot with Minimap](https://altair-viz.github.io/gallery/scatter_with_minimap.html), two instances of the key `param` are used in dictionaries to specify axis domains. Those used to be `selection`, but that usage is not compatible with the current Vega-Lite schema.
- Removed the ``altair.sphinxext`` module (2792). The ``altair-plot`` Sphinx directive is now part of the [sphinxext-altair](https://github.com/altair-viz/sphinxext-altair) package.

Maintenance

- Vega-Altair now uses `hatch` for package management.
- Vega-Altair now uses `ruff` for linting.

Release Notes by Pull Request

* Add strict option to sphinx extension by jtilly in https://github.com/altair-viz/altair/pull/2551
* docs: correcting regression equations by robna in https://github.com/altair-viz/altair/pull/2559
* MAINT: Fix GH actions issues by joelostblom in https://github.com/altair-viz/altair/pull/2567
* WIP: update to Vega-Lite 5.2 by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2528
* MAINT: Update actions' links to use https by joelostblom in https://github.com/altair-viz/altair/pull/2575
* DOCS: Clarify steps in the contributing guidelines by joelostblom in https://github.com/altair-viz/altair/pull/2569
* MAINT: Make sure that deprecation warnings are displayed by joelostblom in https://github.com/altair-viz/altair/pull/2577
* DOCS: Revamp docs for the 5.0 release by joelostblom in https://github.com/altair-viz/altair/pull/2566
* Pin selenium to avoid doctest breakage from deprecation by joelostblom in https://github.com/altair-viz/altair/pull/2624
* Remove broken Wikipedia donations chart by palewire in https://github.com/altair-viz/altair/pull/2625
* Tidy Falkensee case study by palewire in https://github.com/altair-viz/altair/pull/2626
* Tidy up U.S. Population by Age and Sex case study by palewire in https://github.com/altair-viz/altair/pull/2628
* Move bar chart with highlighted segment chart into the bar charts section by palewire in https://github.com/altair-viz/altair/pull/2630
* No need to say "Example" in the example headline by palewire in https://github.com/altair-viz/altair/pull/2631
* Isotype charts aren't case studies and should go in the other category by palewire in https://github.com/altair-viz/altair/pull/2632
* Top k charts aren't case studies and should go with other charts by palewire in https://github.com/altair-viz/altair/pull/2633
* Add pyramid pie chart to case studies by palewire in https://github.com/altair-viz/altair/pull/2635
* Move image tooltip example to interactive charts section by palewire in https://github.com/altair-viz/altair/pull/2636
* Move window rank technique to line charts section by palewire in https://github.com/altair-viz/altair/pull/2637
* Style fix to chart headline by palewire in https://github.com/altair-viz/altair/pull/2639
* Move scatter with histogram into scatter plots section by palewire in https://github.com/altair-viz/altair/pull/2641
* Clean up airport maps by palewire in https://github.com/altair-viz/altair/pull/2634
* Example of a line chart with a label annotating the final value by palewire in https://github.com/altair-viz/altair/pull/2623
* Update ranged_dot_plot.py by palewire in https://github.com/altair-viz/altair/pull/2642
* Tidy natural_disasters.py example by palewire in https://github.com/altair-viz/altair/pull/2643
* Create a new tables section by palewire in https://github.com/altair-viz/altair/pull/2646
* Tidy multiple_marks.py by palewire in https://github.com/altair-viz/altair/pull/2640
* docs: Fix a few typos by timgates42 in https://github.com/altair-viz/altair/pull/2649
* Create a new advanced calculations section of the example gallery by palewire in https://github.com/altair-viz/altair/pull/2647
* Tidy line chart examples by palewire in https://github.com/altair-viz/altair/pull/2644
* MAINT: Update examples and tests to VL5 syntax by joelostblom in https://github.com/altair-viz/altair/pull/2576
* formatted rst list correctly by tempdata73 in https://github.com/altair-viz/altair/pull/2652
* Added argmax example by tempdata73 in https://github.com/altair-viz/altair/pull/2653
* Change naming to alt.param and alt.add_params by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2656
* minor: update readme code by Ckend in https://github.com/altair-viz/altair/pull/2667
* use 'UndefinedLike = Any' as the type hint by brahn in https://github.com/altair-viz/altair/pull/2681
* Add gallery example for empirical cumulative distribution function by binste in https://github.com/altair-viz/altair/pull/2695
* MAINT: Replace `iteritems` with `items` by joelostblom in https://github.com/altair-viz/altair/pull/2683
* Lifting parameters to the top level by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2702
* Clarify that a special field name is required to render images in tooltips by joelostblom in https://github.com/altair-viz/altair/pull/2570
* Integrate vl-convert for saving to svg and png by jonmmease in https://github.com/altair-viz/altair/pull/2701
* Documentation for each mark type by hebarton5 in https://github.com/altair-viz/altair/pull/2607
* Include marks in sidebar/TOC by mattijn in https://github.com/altair-viz/altair/pull/2709
* use default projection from vegalite by mattijn in https://github.com/altair-viz/altair/pull/2710
* Geoshape docs revamp 5.0 by mattijn in https://github.com/altair-viz/altair/pull/2699
* fix reference geoshape.rst to index.rst and some typos by mattijn in https://github.com/altair-viz/altair/pull/2711
* Create new sections in the gallery for distributions and uncertainties and trend charts by binste in https://github.com/altair-viz/altair/pull/2706
* Update docs styling based on the new pydata template by joelostblom in https://github.com/altair-viz/altair/pull/2716
* Fix missing 's' from filename in quick start by dwootton in https://github.com/altair-viz/altair/pull/2719
* Revert undefinedlike by mattijn in https://github.com/altair-viz/altair/pull/2717
* Fix some formatting issues by binste in https://github.com/altair-viz/altair/pull/2722
* Improve documentation titles by binste in https://github.com/altair-viz/altair/pull/2721
* Make vl-convert saving work when the data server is enabled by joelostblom in https://github.com/altair-viz/altair/pull/2724
* Add toggle to hidden code snippets by joelostblom in https://github.com/altair-viz/altair/pull/2725
* MAINT: Update from v4 to v5 in some additional files by joelostblom in https://github.com/altair-viz/altair/pull/2582
* Fix syntax for with statement in _spec_to_mimebundle_with_engine by binste in https://github.com/altair-viz/altair/pull/2734
* Various smaller updates to documentation (harmonizing title cases, vega version numbers, browser compatibility, ...) by binste in https://github.com/altair-viz/altair/pull/2737
* Improve mark type sections by binste in https://github.com/altair-viz/altair/pull/2720
* Fix cut off property tables by binste in https://github.com/altair-viz/altair/pull/2746
* Update _magics.py by johnmarkpittman in https://github.com/altair-viz/altair/pull/2747
* Add waterfall chart example by yanghung in https://github.com/altair-viz/altair/pull/2621
* Run tests with Python 3.11 by binste in https://github.com/altair-viz/altair/pull/2757
* Improve waterfall example by binste in https://github.com/altair-viz/altair/pull/2756
* Improve encoding section by binste in https://github.com/altair-viz/altair/pull/2735
* documentation on spatial data by mattijn in https://github.com/altair-viz/altair/pull/2750
* Address Sphinx warnings by binste in https://github.com/altair-viz/altair/pull/2758
* fix(2675): replace entrypoints with importlib.metadata by daylinmorgan in https://github.com/altair-viz/altair/pull/2686
* DOC: add dendrogram example by xujiboy in https://github.com/altair-viz/altair/pull/2615
* fix: remove duplicate / by domoritz in https://github.com/altair-viz/altair/pull/2262
* Clarify that not all channels accept additional options by binste in https://github.com/altair-viz/altair/pull/2773
* Consolidate docs and add section on Large Datasets by binste in https://github.com/altair-viz/altair/pull/2755
* fix: remove webdriver default argument to save by Midnighter in https://github.com/altair-viz/altair/pull/2466
* Fix docs for mobile devices by binste in https://github.com/altair-viz/altair/pull/2778
* Merge data pages again by binste in https://github.com/altair-viz/altair/pull/2781
* Update github actions by binste in https://github.com/altair-viz/altair/pull/2780
* enh: remove slash from base_url instead of html_template by mattijn in https://github.com/altair-viz/altair/pull/2782
* Test vl-convert engine in chart.save test by jonmmease in https://github.com/altair-viz/altair/pull/2784
* Fix altair test save if vl-convert-python is installed and altair_saver is not by binste in https://github.com/altair-viz/altair/pull/2786
* Remove update_subtraits as not used anywhere by binste in https://github.com/altair-viz/altair/pull/2787
* Run tests for both save engines altair_saver and vl-convert-python by binste in https://github.com/altair-viz/altair/pull/2791
* move tests and sphinxext outside folder application code by mattijn in https://github.com/altair-viz/altair/pull/2792
* Add method-based attribute setting by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2795
* Modify generator to move autogenerated test to tests folder by mattijn in https://github.com/altair-viz/altair/pull/2804
* Disable uri-reference format check in jsonsschema by binste in https://github.com/altair-viz/altair/pull/2771
* Aliases for ImputeParams and TitleParams by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2732
* Update and simplify README by binste in https://github.com/altair-viz/altair/pull/2774
* Add --check to black test command by binste in https://github.com/altair-viz/altair/pull/2815
* Add test for layer properties by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2811
* docs: Use SVG thumbnail for emoji example and use VlConvert to build docs on CI by jonmmease in https://github.com/altair-viz/altair/pull/2809
* Dynamically determine jsonschema validator by binste in https://github.com/altair-viz/altair/pull/2812
* Change default chart width from 400 to 300 by binste in https://github.com/altair-viz/altair/pull/2785
* Add inline argument to chart.save() for html export by jonmmease in https://github.com/altair-viz/altair/pull/2807
* Remove side-effects of calling EncodingChannelMixin.to_dict by binste in https://github.com/altair-viz/altair/pull/2813
* WIP Parameter tests by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2828
* Add missing object attributes to __dir__ by binste in https://github.com/altair-viz/altair/pull/2831
* Clean up development and documentation requirements by binste in https://github.com/altair-viz/altair/pull/2830
* Add title section to customization page by palewire in https://github.com/altair-viz/altair/pull/2838
* Fix disable_debug_mode by binste in https://github.com/altair-viz/altair/pull/2851
* Remove vegalite v3 and v4 wrappers by binste in https://github.com/altair-viz/altair/pull/2847
* Remove vega v5 wrappers by mattijn in https://github.com/altair-viz/altair/pull/2829
* Represent pandas ordered categoricals as ordinal data by joelostblom in https://github.com/altair-viz/altair/pull/2522
* Add documentation for remaining config methods by binste in https://github.com/altair-viz/altair/pull/2853
* Reformat code base with black version 23 and restrict version by binste in https://github.com/altair-viz/altair/pull/2869
* Fix Altair import in tools scripts by binste in https://github.com/altair-viz/altair/pull/2872
* Hide deprecated callables from code completion suggestions by binste in https://github.com/altair-viz/altair/pull/2814
* Add changelog entries for 5.0 by joelostblom in https://github.com/altair-viz/altair/pull/2859
* Remove deep validation and instead use error hierarchy to improve error messages by binste in https://github.com/altair-viz/altair/pull/2842
* Make layer warnings clearer by joelostblom in https://github.com/altair-viz/altair/pull/2874
* Update Large Datasets documentation with VegaFusion 1.0 information by jonmmease in https://github.com/altair-viz/altair/pull/2855
* Add return type hints to improve code completion suggestions by binste in https://github.com/altair-viz/altair/pull/2846
* Apply minor code formatting change in tools script by binste in https://github.com/altair-viz/altair/pull/2881
* Expand mark spec when using to_dict by joelostblom in https://github.com/altair-viz/altair/pull/2823
* Report filename of failing test by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2889
* Use most specific class possible in schema validation errors by binste in https://github.com/altair-viz/altair/pull/2883
* Add announcement to docs by mattijn in https://github.com/altair-viz/altair/pull/2891
* exclude `altair_saver` in `build.yml` as Github Actions tests are not passing anymore by mattijn in https://github.com/altair-viz/altair/pull/2893
* Remove the automatic sort of categoricals for channels that do not support sorting by joelostblom in https://github.com/altair-viz/altair/pull/2885
* Add Heat Lane example by palewire in https://github.com/altair-viz/altair/pull/2882
* Support DataFrame Interchange Protocol (allow Polars DataFrames) by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2888
* Parse shorthand when creating the condition 2 by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2841
* Fix wrong json schema url in a test by binste in https://github.com/altair-viz/altair/pull/2898
* Apply minor change from 2841 in correct tools script by binste in https://github.com/altair-viz/altair/pull/2899
* Fix minor formatting issues in documentation by binste in https://github.com/altair-viz/altair/pull/2897
* No longer use deprecated SelectableGroups dict interface of entry points by binste in https://github.com/altair-viz/altair/pull/2900
* Add instructions on how to install release candidate by binste in https://github.com/altair-viz/altair/pull/2902
* Add missing attribute descriptions by binste in https://github.com/altair-viz/altair/pull/2892
* Rename 'Attributes' to 'Parameters' to fix documentation formatting by binste in https://github.com/altair-viz/altair/pull/2901
* Docstring links class transform and mark methods by mattijn in https://github.com/altair-viz/altair/pull/2912
* ENH: Make the schema validation error for non-existing params more informative by joelostblom in https://github.com/altair-viz/altair/pull/2568
* Make error messages on typos and missing/incorrect data types more informative by joelostblom in https://github.com/altair-viz/altair/pull/2824
* Include `alt.ExprRef` capabilities in `alt.expr()` by mattijn in https://github.com/altair-viz/altair/pull/2886
* Move change introduced in 2824 to tools script by binste in https://github.com/altair-viz/altair/pull/2921
* MAINT: Remove inheritance from object for classes by binste in https://github.com/altair-viz/altair/pull/2922
* Update parameter docstrings and signatures by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2908
* Update from Vega-Lite 5.2.0 to 5.6.1 by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2871
* Deprecating selection by ChristopherDavisUCI in https://github.com/altair-viz/altair/pull/2923
* Improve autocompletion for arguments to objects wrapped with use_signature by binste in https://github.com/altair-viz/altair/pull/2920
* Update docs to better describe how to use checkboxes and logic-based bindings in general by joelostblom in https://github.com/altair-viz/altair/pull/2926
* Fix test_schema_validator_selection for jsonschema<4 by binste in https://github.com/altair-viz/altair/pull/2931
* Add more information about how to handle the max rows error by palewire in https://github.com/altair-viz/altair/pull/2840
* Fix deprecation warning for SelectableGroup in Python 3.7 by binste in https://github.com/altair-viz/altair/pull/2932
* include deprecation message in docstring by mattijn in https://github.com/altair-viz/altair/pull/2930
* use selection_point or selection_interval syntax by mattijn in https://github.com/altair-viz/altair/pull/2929
* Expand and document support for column names with special characters by joelostblom in https://github.com/altair-viz/altair/pull/2905
* Fix a few remaining ocurrences of `type=` by joelostblom in https://github.com/altair-viz/altair/pull/2933
* docs: Make rendering optional for tutorial by dylancashman in https://github.com/altair-viz/altair/pull/2925
* include section on expressions for interaction by mattijn in https://github.com/altair-viz/altair/pull/2928
* Add missing pandas import in docs by joelostblom in https://github.com/altair-viz/altair/pull/2934
* fix docstrings errors by mattijn in https://github.com/altair-viz/altair/pull/2936
* include issue in announcement by mattijn in https://github.com/altair-viz/altair/pull/2938
* Add vega themes 'excel', 'googlecharts', 'powerbi' by binste in https://github.com/altair-viz/altair/pull/2943
* Docs: Fix formatting of 2 links by binste in https://github.com/altair-viz/altair/pull/2942
* Apply changes of 2931 in tools folder by binste in https://github.com/altair-viz/altair/pull/2941
* Fail build workflow if generate_schema_wrapper produces changes by binste in https://github.com/altair-viz/altair/pull/2940
* Update resource section by joelostblom in https://github.com/altair-viz/altair/pull/2415
* Shorten page title by joelostblom in https://github.com/altair-viz/altair/pull/2946
* Remove $ from bash examples on installation page by palewire in https://github.com/altair-viz/altair/pull/2962
* Slight edits and trims to the overview page by palewire in https://github.com/altair-viz/altair/pull/2961
* Include all options in enum error messages by binste in https://github.com/altair-viz/altair/pull/2957
* Type hints: Improve for encoding channel attributes by binste in https://github.com/altair-viz/altair/pull/2949
* Simplify and clean up tool folder by binste in https://github.com/altair-viz/altair/pull/2944
* Temporarily use default data transformer while saving a chart by binste in https://github.com/altair-viz/altair/pull/2954
* Cut dependencies from installation page by palewire in https://github.com/altair-viz/altair/pull/2964
* Type hints: Add static type checker mypy by binste in https://github.com/altair-viz/altair/pull/2950
* Maintenance: Remove test_schemapi.py in tools folder by binste in https://github.com/altair-viz/altair/pull/2973
* Deduplicate error messages by binste in https://github.com/altair-viz/altair/pull/2975
* Move disclaimer to the bottom of the index page by palewire in https://github.com/altair-viz/altair/pull/2960
* Consolidate naming history into overview by palewire in https://github.com/altair-viz/altair/pull/2968
* Reduce line-height in the gallery thumbnail headlines by palewire in https://github.com/altair-viz/altair/pull/2969
* Add missing descriptions to tables created with altair-object-table by binste in https://github.com/altair-viz/altair/pull/2952
* Clean tests folder by mattijn in https://github.com/altair-viz/altair/pull/2974
* Trim that eliminates redundancy by palewire in https://github.com/altair-viz/altair/pull/2985
* Trim index page language by palewire in https://github.com/altair-viz/altair/pull/2970
* Add code copy button to docs by joelostblom in https://github.com/altair-viz/altair/pull/2984
* Clarify differences between pandas and other dataframe packages by joelostblom in https://github.com/altair-viz/altair/pull/2986
* Use more idiomatic `stroke` option by joelostblom in https://github.com/altair-viz/altair/pull/2992
* Display more helpful error message when two fields strings are used in condition by joelostblom in https://github.com/altair-viz/altair/pull/2979
* Restructure and clarify interactive docs by joelostblom in https://github.com/altair-viz/altair/pull/2981
* Simplify syntax by joelostblom in https://github.com/altair-viz/altair/pull/2991
* Sync `selection_*` docstrings with signatures by dpoznik in https://github.com/altair-viz/altair/pull/3001
* Prefer method-based syntax in docs and add tabbed interface for method and attribute syntax in gallery by joelostblom in https://github.com/altair-viz/altair/pull/2983
* Fix a few doc build warnings by joelostblom in https://github.com/altair-viz/altair/pull/3004
* use `ruff` as linter by mattijn in https://github.com/altair-viz/altair/pull/3008
* remove deprecated datasets.py by mattijn in https://github.com/altair-viz/altair/pull/3010
* fix writing svg to file including emojis by mattijn in https://github.com/altair-viz/altair/pull/3015
* Simplify package mangement by mattijn in https://github.com/altair-viz/altair/pull/3007
* Update from Vega-Lite 5.6.1 to 5.7.1 by binste in https://github.com/altair-viz/altair/pull/3022
* Categories transposed in data documentation by m-charlton in https://github.com/altair-viz/altair/pull/3026
* Fix typo in docs causing code blocks to not render by joelostblom in https://github.com/altair-viz/altair/pull/3029
* include underscore after view by mattijn in https://github.com/altair-viz/altair/pull/3030
* include view definitions for a layercharts containing a repeat + toplevel selection parameter by mattijn in https://github.com/altair-viz/altair/pull/3031
* Improve readme by mattijn in https://github.com/altair-viz/altair/pull/3033
* Improve error prioritisation and messages by binste in https://github.com/altair-viz/altair/pull/3009
* Enhancement of Vega-Embed CSS for Improved Display and Flexibility by nlafleur in https://github.com/altair-viz/altair/pull/2867
* update vega expressions options by mattijn in https://github.com/altair-viz/altair/pull/3034
* re-include interactive_layered_crossfilter by mattijn in https://github.com/altair-viz/altair/pull/3036
* Update from Vega-Lite 5.7.1 to 5.8.0 by mattijn in https://github.com/altair-viz/altair/pull/3037
* Increase minimum required jsonschema (`>=4.0.01`) by mattijn in https://github.com/altair-viz/altair/pull/3039
* Add info that altair_saver does not yet support Altair 5 by binste in https://github.com/altair-viz/altair/pull/3042
* geopandas.datasets is deprecated by mattijn in https://github.com/altair-viz/altair/pull/3043
* reintroduce support `jsonschema>=3.0` by mattijn in https://github.com/altair-viz/altair/pull/3044
* Update core.py by kunalghosh in https://github.com/altair-viz/altair/pull/3046
* update display.py, fix broken link by mattijn in https://github.com/altair-viz/altair/pull/3047

New Contributors
* robna made their first contribution in https://github.com/altair-viz/altair/pull/2559
* tempdata73 made their first contribution in https://github.com/altair-viz/altair/pull/2652
* Ckend made their first contribution in https://github.com/altair-viz/altair/pull/2667
* brahn made their first contribution in https://github.com/altair-viz/altair/pull/2681
* jonmmease made their first contribution in https://github.com/altair-viz/altair/pull/2701
* hebarton5 made their first contribution in https://github.com/altair-viz/altair/pull/2607
* dwootton made their first contribution in https://github.com/altair-viz/altair/pull/2719
* johnmarkpittman made their first contribution in https://github.com/altair-viz/altair/pull/2747
* yanghung made their first contribution in https://github.com/altair-viz/altair/pull/2621
* daylinmorgan made their first contribution in https://github.com/altair-viz/altair/pull/2686
* xujiboy made their first contribution in https://github.com/altair-viz/altair/pull/2615
* Midnighter made their first contribution in https://github.com/altair-viz/altair/pull/2466
* dylancashman made their first contribution in https://github.com/altair-viz/altair/pull/2925
* dpoznik made their first contribution in https://github.com/altair-viz/altair/pull/3001
* m-charlton made their first contribution in https://github.com/altair-viz/altair/pull/3026
* nlafleur made their first contribution in https://github.com/altair-viz/altair/pull/2867
* kunalghosh made their first contribution in https://github.com/altair-viz/altair/pull/3046

**Full Changelog**: https://github.com/altair-viz/altair/compare/v4.2.0...v5.0.0

4.2.2

Bug Fixes

* Fix incompatibility with jsonschema < 4.5 which got introduced in Altair 4.2.1 (2860).

**Full Changelog**: https://github.com/altair-viz/altair/compare/v4.2.1...v4.2.2

4.2.1

Note: This version requires `jsonschema>=4.5.0` see (https://github.com/altair-viz/altair/issues/2857).

Bug Fixes

- Disable uri-reference format check in jsonsschema (2771).
- Replace ``iteritems`` with ``items`` due to pandas deprecation (2683).

Maintenance

- Add deprecation and removal warnings for Vega-Lite v3 wrappers and Vega v5 wrappers (2843).

4.2.0

- Update Vega-Lite from version 4.8.1 to version 4.17.0; see [Vega-Lite Release Notes](https://github.com/vega/vega-lite/releases).

Enhancements
- Pie charts are now supported through the use of `mark_arc`. (Examples: eg. [Pie Chart](https://altair-viz.github.io/gallery/pie_chart.html#gallery-pie-chart) and [Radial Chart](https://altair-viz.github.io/gallery/radial_chart.html#gallery-radial-chart))
- Support for the `datum` encoding specifications from Vega-Lite; see [Vega-Lite Datum Definition](https://vega.github.io/vega-lite/docs/encoding.html#datum-def). (Examples: [Line Chart with datum](https://altair-viz.github.io/gallery/line_chart_with_datum.html#gallery-line-chart-with-datum) and [Line Chart with datum for color](https://altair-viz.github.io/gallery/line_chart_with_color_datum.html#gallery-line-chart-with-color-datum).)
- ``angle`` encoding can now be used to control point styles (Example: [Wind Vector Map](https://altair-viz.github.io/gallery/wind_vector_map.html#gallery-wind-vector-map))
- Support for serialising pandas nullable data types for float data (2399).
- Automatically create an empty data object when `Chart` is called without a data parameter (2515).
- Allow the use of pathlib Paths when saving charts (2355).
- Support deepcopy for charts (2403).

Bug Fixes
- Fix `to_dict()` for nested selections (2120).
- Fix item access for expressions (2099).

4.1.0

- 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](https://github.com/vega/vega-lite/releases).

Enhancements

- ``strokeDash`` encoding can now be used to control line styles (Example: [Multi Series Line Chart](https://altair-viz.github.io/gallery/multi_series_line.html)
- ``chart.save()`` now relies on [altair_saver](http://github.com/altair-viz/altair_saver) for more flexibility (#1943).
- New ``chart.show()`` method replaces ``chart.serve()``, and relies on [altair_viewer](http://github.com/altair-viz/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)

Maintenance

- Altair now uses [black](https://github.com/psf/black) and [flake8](https://gitlab.com/pycqa/flake8) for maintaining code quality & consistency.

4.0.1

Bug fixes
- Update Vega-Lite version to 4.0.2
- Fix issue with duplicate chart divs in HTML renderer (1888)

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.