Altair

Altair: Interactive Statistical Visualizations for Python - Published in JOSS (2018)

https://github.com/vega/altair

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

blackhole closember astronomy topological-data-analysis dimensionality-reduction parallel mesh solar-physics solar astropy
Last synced: 6 months ago · JSON representation

Repository

Declarative visualization library for Python

Basic Info
Statistics
  • Stars: 9,985
  • Watchers: 137
  • Forks: 816
  • Open Issues: 154
  • Releases: 31
Created over 10 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Vega-Altair

github actions typedlib_mypy JOSS Paper PyPI - Downloads

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:

Binder Colab

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', ) ```

Vega-Altair Visualization

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 ```

Vega-Altair Visualization Gif

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

uv Ruff pytest

For information on how to contribute your developments back to the Vega-Altair repository, see CONTRIBUTING.md

Citing Vega-Altair

JOSS Paper

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

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

All Time
  • Total Commits: 2,952
  • Total Committers: 177
  • Avg Commits per committer: 16.678
  • Development Distribution Score (DDS): 0.559
Past Year
  • Commits: 189
  • Committers: 21
  • Avg Commits per committer: 9.0
  • Development Distribution Score (DDS): 0.28
Top Committers
Name Email 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...

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
enhancement (125) bug (106) documentation (51) question (31) maintenance (18) needs-triage (17) vega-lite-related (10) duplicate (10) good first issue (8) needs-info (6) breaking (6) vega: vega-lite (5) vega: vegafusion (4) vega: vega (4) help wanted (4) vega: vega-datasets (3) needs-user-response (3) deprecation (2) has-repro (2) dependencies (1)
Pull Request Labels
maintenance (154) documentation (60) enhancement (39) bug (34) dependencies (20) usability (3) github_actions (3) deprecation (2) help wanted (2) breaking (1) vega: vl-convert (1)

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
  • Versions: 43
  • Dependent Packages: 344
  • Dependent Repositories: 16,451
  • Downloads: 33,330,598 Last month
  • Docker Downloads: 357,742,469
Rankings
Downloads: 0.1%
Dependent repos count: 0.1%
Dependent packages count: 0.1%
Docker downloads count: 0.3%
Average: 0.5%
Stargazers count: 0.6%
Forks count: 2.0%
Last synced: 6 months ago
proxy.golang.org: github.com/vega/altair
  • Versions: 32
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.4%
Average: 6.6%
Dependent repos count: 6.8%
Last synced: 6 months ago
anaconda.org: altair

A declarative statistical visualization library for Python.

  • Versions: 5
  • Dependent Packages: 4
  • Dependent Repositories: 299
Rankings
Stargazers count: 8.9%
Dependent repos count: 10.7%
Average: 11.5%
Forks count: 12.7%
Dependent packages count: 13.5%
Last synced: 6 months ago
pypi.org: altair_alx_alpha

Vega-Altair: A declarative statistical visualization library for Python.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 34 Last month
Rankings
Dependent packages count: 9.6%
Average: 36.4%
Dependent repos count: 63.1%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/build.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/docbuild.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/lint.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
pyproject.toml pypi
  • jinja2 *
  • jsonschema >=3.0
  • numpy *
  • packaging *
  • pandas >=0.25
  • toolz *
  • typing_extensions >=4.0.1; python_version<"3.11"