Altair
Altair: Interactive Statistical Visualizations for Python - Published in JOSS (2018)
Science Score: 59.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 9 DOI reference(s) in README -
✓Academic publication links
Links to: acm.org, joss.theoj.org -
✓Committers with academic emails
13 of 177 committers (7.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Keywords from Contributors
Repository
Declarative visualization library for Python
Basic Info
- Host: GitHub
- Owner: vega
- License: bsd-3-clause
- Language: Python
- Default Branch: main
- Homepage: https://altair-viz.github.io/
- Size: 44.1 MB
Statistics
- Stars: 9,985
- Watchers: 137
- Forks: 816
- Open Issues: 154
- Releases: 31
Metadata Files
README.md
Vega-Altair 
Vega-Altair is a declarative statistical visualization library for Python. With Vega-Altair, you can spend more time understanding your data and its meaning. Vega-Altair's API is simple, friendly and consistent and built on top of the powerful Vega-Lite JSON specification. This elegant simplicity produces beautiful and effective visualizations with a minimal amount of code.
Vega-Altair was originally developed by Jake Vanderplas and Brian Granger in close collaboration with the UW Interactive Data Lab. The Vega-Altair open source project is not affiliated with Altair Engineering, Inc.
Documentation
See Vega-Altair's Documentation Site as well as the Tutorial Notebooks. You can run the notebooks directly in your browser by clicking on one of the following badges:
Example
Here is an example using Vega-Altair to quickly visualize and display a dataset with the native Vega-Lite renderer in the JupyterLab:
```python import altair as alt
load a simple dataset as a pandas DataFrame
from vega_datasets import data cars = data.cars()
alt.Chart(cars).markpoint().encode( x='Horsepower', y='Milesper_Gallon', color='Origin', ) ```

One of the unique features of Vega-Altair, inherited from Vega-Lite, is a declarative grammar of not just visualization, but interaction. With a few modifications to the example above we can create a linked histogram that is filtered based on a selection of the scatter plot.
```python import altair as alt from vega_datasets import data
source = data.cars()
brush = alt.selection_interval()
points = alt.Chart(source).markpoint().encode( x='Horsepower', y='MilesperGallon', color=alt.when(brush).then("Origin").otherwise(alt.value("lightgray")) ).addparams( brush )
bars = alt.Chart(source).markbar().encode( y='Origin', color='Origin', x='count(Origin)' ).transformfilter( brush )
points & bars ```

Features
- Carefully-designed, declarative Python API.
- Auto-generated internal Python API that guarantees visualizations are type-checked and in full conformance with the Vega-Lite specification.
- Display visualizations in JupyterLab, Jupyter Notebook, Visual Studio Code, on GitHub and nbviewer, and many more.
- Export visualizations to various formats such as PNG/SVG images, stand-alone HTML pages and the Online Vega-Lite Editor.
- Serialize visualizations as JSON files.
Installation
Vega-Altair can be installed with:
bash
pip install altair
If you are using the conda package manager, the equivalent is:
bash
conda install altair -c conda-forge
For full installation instructions, please see the documentation.
Getting Help
If you have a question that is not addressed in the documentation,
you can post it on StackOverflow using the altair tag.
For bugs and feature requests, please open a Github Issue.
Development
For information on how to contribute your developments back to the Vega-Altair repository, see
CONTRIBUTING.md
Citing Vega-Altair
If you use Vega-Altair in academic work, please consider citing https://joss.theoj.org/papers/10.21105/joss.01057 as
bib
@article{VanderPlas2018,
doi = {10.21105/joss.01057},
url = {https://doi.org/10.21105/joss.01057},
year = {2018},
publisher = {The Open Journal},
volume = {3},
number = {32},
pages = {1057},
author = {Jacob VanderPlas and Brian Granger and Jeffrey Heer and Dominik Moritz and Kanit Wongsuphasawat and Arvind Satyanarayan and Eitan Lees and Ilia Timofeev and Ben Welsh and Scott Sievert},
title = {Altair: Interactive Statistical Visualizations for Python},
journal = {Journal of Open Source Software}
}
Please additionally consider citing the Vega-Lite project, which Vega-Altair is based on: https://dl.acm.org/doi/10.1109/TVCG.2016.2599030
bib
@article{Satyanarayan2017,
author={Satyanarayan, Arvind and Moritz, Dominik and Wongsuphasawat, Kanit and Heer, Jeffrey},
title={Vega-Lite: A Grammar of Interactive Graphics},
journal={IEEE transactions on visualization and computer graphics},
year={2017},
volume={23},
number={1},
pages={341-350},
publisher={IEEE}
}
Owner
- Name: Vega
- Login: vega
- Kind: organization
- Website: https://vega.github.io
- Twitter: vega_vis
- Repositories: 105
- Profile: https://github.com/vega
Data Visualization Languages & Tools
GitHub Events
Total
- Create event: 69
- Release event: 1
- Issues event: 185
- Watch event: 641
- Delete event: 56
- Issue comment event: 507
- Push event: 409
- Pull request event: 178
- Pull request review event: 166
- Pull request review comment event: 145
- Fork event: 32
Last Year
- Create event: 69
- Release event: 1
- Issues event: 185
- Watch event: 641
- Delete event: 56
- Issue comment event: 507
- Push event: 409
- Pull request event: 178
- Pull request review event: 166
- Pull request review comment event: 145
- Fork event: 32
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Jake VanderPlas | j****p@g****m | 1,302 |
| Brian E. Granger | e****g@g****m | 222 |
| palewire | b****h@g****m | 201 |
| Dan Redding | 1****d | 147 |
| Mattijn van Hoek | m****n@g****m | 145 |
| Stefan Binder | b****n@o****m | 126 |
| Eitan Lees | e****s@g****m | 104 |
| Joel Ostblom | j****m | 78 |
| Jon Mease | j****e@g****m | 63 |
| afonit | a****t@g****m | 58 |
| Christopher Davis | c****s@g****m | 42 |
| Dominik Moritz | d****z@g****m | 33 |
| Alejandro Guerrero Gonzalez | a****g@A****l | 21 |
| Thomas A Caswell | t****l@b****v | 19 |
| freeman | t****b@g****m | 18 |
| ilia_timofeev | i****v@g****m | 16 |
| Hannah Barton | h****n@d****e | 15 |
| Luke Shulman | l****n@a****m | 14 |
| Marco Edward Gorelli | m****i@p****m | 12 |
| Marjorie Roswell | m****l@g****m | 10 |
| Iain Dillingham | i****n@d****k | 9 |
| Pratap Vardhan | p****8@g****m | 9 |
| manzt | t****4@g****m | 8 |
| Weng, Chia-Ling | 7****g | 8 |
| Rob Story | r****b@s****m | 7 |
| Sebastian Neubauer | s****r@b****m | 6 |
| yogabonito | y****o | 6 |
| mc-robinson | m****n@y****u | 5 |
| Todd Iverson | t****n@s****u | 5 |
| Saul Shanabrook | s****k@g****m | 5 |
| and 147 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 351
- Total pull requests: 507
- Average time to close issues: over 1 year
- Average time to close pull requests: 30 days
- Total issue authors: 161
- Total pull request authors: 38
- Average comments per issue: 3.4
- Average comments per pull request: 2.17
- Merged pull requests: 425
- Bot issues: 0
- Bot pull requests: 7
Past Year
- Issues: 115
- Pull requests: 228
- Average time to close issues: 13 days
- Average time to close pull requests: 3 days
- Issue authors: 63
- Pull request authors: 21
- Average comments per issue: 1.57
- Average comments per pull request: 1.65
- Merged pull requests: 188
- Bot issues: 0
- Bot pull requests: 5
Top Authors
Issue Authors
- joelostblom (48)
- dangotbanned (34)
- mattijn (23)
- ellisonbg (19)
- jakevdp (14)
- MarcoGorelli (9)
- binste (8)
- armsp (5)
- firasm (4)
- samesand (4)
- liquidcarbon (4)
- palewire (3)
- aggFTW (3)
- Philliec459 (3)
- jonmmease (3)
Pull Request Authors
- dangotbanned (282)
- mattijn (27)
- MarcoGorelli (24)
- jakevdp (21)
- binste (20)
- ellisonbg (19)
- joelostblom (15)
- dsmedia (11)
- aggFTW (10)
- jonmmease (9)
- tacaswell (8)
- dependabot[bot] (7)
- kurtmckee (4)
- star1327p (3)
- eitanlees (3)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 4
-
Total downloads:
- pypi 33,330,632 last-month
- Total docker downloads: 357,742,469
-
Total dependent packages: 348
(may contain duplicates) -
Total dependent repositories: 16,750
(may contain duplicates) - Total versions: 82
- Total maintainers: 7
pypi.org: altair
Vega-Altair: A declarative statistical visualization library for Python.
- Documentation: https://altair-viz.github.io
- License: Copyright (c) 2015-2023, Vega-Altair Developers All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of vega-altair nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
Latest release: 5.5.0
published over 1 year ago
Rankings
Maintainers (6)
proxy.golang.org: github.com/vega/altair
- Documentation: https://pkg.go.dev/github.com/vega/altair#section-documentation
- License: bsd-3-clause
-
Latest release: v5.5.0+incompatible
published over 1 year ago
Rankings
anaconda.org: altair
A declarative statistical visualization library for Python.
- Homepage: https://github.com/vega/altair
- License: BSD-3-Clause
-
Latest release: 5.5.0
published 11 months ago
Rankings
pypi.org: altair_alx_alpha
Vega-Altair: A declarative statistical visualization library for Python.
- Documentation: https://altair-viz.github.io
- License: BSD License
-
Latest release: 5.4.1a0
published almost 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- jinja2 *
- jsonschema >=3.0
- numpy *
- packaging *
- pandas >=0.25
- toolz *
- typing_extensions >=4.0.1; python_version<"3.11"