question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example Visualizations

See original GitHub issue

In preparation for the Altair 2.0 release, we need some good example visualizations for the documentation! These could be everything from simple one-panel scatter and line plots, to more complicated layered or stacked plots, to more advanced interactive features.

Note that the v2 API is not finalized yet, and so another purpose of creating these is to find bugs in the current package as we prepare for release. If you find anything, please report it on the issues tracker!

I’ve started a folder for these examples in altair/vegalite/v2/examples/. You can treat simple_scatter.py as a template.

Every example should:

  • have a descriptive docstring, which will eventually be extracted for the documentation website.
  • define a chart variable with the main chart object (This will be used both in the unit tests to confirm that the example executes properly, and also eventually used to display the visualization on the documentation website).
  • not make any external calls to download data within the script (i.e. don’t use urllib). You can define your data directly within the example file, generate your data using pandas and numpy.random, or you can use data available in the vega_datasets package.

The easiest way to get started would be to adapt examples from the Vega-Lite example gallery. Or you can feel free to be creative and build your own visualizations.

Note that the new display architecture is still being built; for display troubleshooting please see the wiki page: https://github.com/altair-viz/altair/wiki/Display-Troubleshooting

We’ll look forward to your pull requests!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:36 (26 by maintainers)

github_iconTop GitHub Comments

4reactions
jakevdpcommented, Mar 1, 2018

Wow… a week later we have almost 60 new examples! Thanks for the help everyone!

New examples are still welcome, but I’m going to close this issue because we’re in pretty good shape at this point.

2reactions
kanitwcommented, Feb 22, 2018

If anyone wants to create new “creative” examples that are not on the Vega-Lite gallery, please feel free to submit them to Vega-Lite repo too 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 10 Best Data Visualization Examples | Tableau
See the ten most revealing, intriguing, and best data visualization examples from historical and contemporary sources alike.
Read more >
The 10 Best Modern Data Visualization Examples - Qlik
See the 10 most compelling & interesting data visualization examples from recent years. Interactive charts on topics like music, food, crypto & politics....
Read more >
The 25 Best Data Visualizations of 2022 [Examples] - Visme
1 Visualizing the History of Pandemics · 2 It Fell From the Sky · 3 Mars Mission 2024 Promo Reel · 4 Void...
Read more >
24 Best Interactive Data Visualization Examples For Inspiration
Check out our rundown of the 24 best interactive data visualization examples that demonstrate creativity and innovation. Learn more here!
Read more >
9 Beautiful Data Visualization Examples - CareerFoundry
9 Beautiful and Informative Data Visualization Examples · 1. Visualizing a zettabyte · 2. Network graph of character interactions in the Star Wars...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found