An open API service indexing awesome lists of open source software.

https://github.com/outerbounds/metaflow-card-altair

Render Altair Charts in Metaflow Cards
https://github.com/outerbounds/metaflow-card-altair

metaflow metaflow-cards

Last synced: 10 months ago
JSON representation

Render Altair Charts in Metaflow Cards

Awesome Lists containing this project

README

          

# Altair MetaFlow Card

This is an example of how to render [Altair charts](https://altair-viz.github.io/) in MetaFlow cards. Altair allows you to make interactive plots.

## Instructions

To run the example, first install dependencies

```bash
pip install -r requirements.txt
```

Then, run the Flow:

```bash
python altairflow.py run
```

Then, view the card:

```bash
python altairflow.py card view start
```

You can draw a rectangle on the top graph to filter the bar graph on the bottom:

![chart](https://user-images.githubusercontent.com/1483922/149611491-11aee988-a000-4662-af09-3aae1190fa96.gif)