Skip to content
Proyectos

simonw/datasette-vega

Ver en GitHub

Acerca de

Datasette plugin for visualizing data using Vega

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
+1
in 15 days
+2
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

datasette-vega

PyPI License

A Datasette plugin that provides tools for generating charts using Vega.

Datasette Vega interface

Try it out in your browser using Datasette Lite, which installs the latest release of this plugin and charts fatalities per airline from 2000 to 2014, using FiveThirtyEight's airline safety data.

To add this to your Datasette installation, install the plugin like so:

pip install datasette-vega

The plugin will then add a "Show charting options" button to every Datasette table and SQL query page.

If you are publishing data using the datasette publish command, you can include this plugin like so:

datasette publish cloudrun mydatabase.db --service=my-service --install=datasette-vega

Development

The JavaScript is bundled using esbuild. Install the dependencies and build the plugin's static assets into datasette_vega/static/ like this:

npm install
npm run build

This needs to run before building the Python package, since the bundled assets are not checked into the repository.

To work on the charting interface against the demo page in public/index.html, with automatic rebuilds:

npm run dev

Then open http://localhost:3000/.

To run the Python tests (after npm run build):

uv run pytest

Explorar proyectos relacionados

Cargando…