This is Brandon's working branch. Includes the following fixes:
- allow dynamic resizing of chart datasette-vega#32
- allow hiding/showing chart datasette-vega#36 datasette-vega#17 datasette-vega#PR-18
- make chart show up on query page (and any page with
columns
) datasette-vega#41 - include development instructions datasette-vega#PR-46
- error handling around URL fetch and vega rendering
A Datasette plugin that provides tools for generating charts using Vega.
Try out the latest master build as a live demo at https://datasette-vega-latest.datasette.io/ or try the latest release installed as a plugin at https://fivethirtyeight.datasettes.com/
To add this to your Datasette installation, install the plugin like so:
pip install datasette-vega
The plugin will then add itself to every Datasette table view.
If you are publishing data using the datasette publish
command, you can
include this plugin like so:
datasette publish now mydatabase.db --install=datasette-vega
To contribute to this tool, first checkout the code.
git clone git@github.com:simonw/datasette-vega.git
Then, install dependencies
npm install
Then, you will be able to run a hot-reloading development server.
npm run start