Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.82 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.82 KB

datasette-plot

PyPI Changelog Tests License

A Datasette plugin for making data visualizations with Observable Plot.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-plot

Usage

Once installed, table pages and SQL query pages will have a new "Show plot" button that will open the datasette-plot.

Currently, datasette-plot only supports a few visualization marks from Plot, including dot, line, area, bar, and more.

dsc-plot-02.mp4

Use the Link to this plot URL to share visualization with others. The link will have your plot options encoded in the URL.

Development

To set up this plugin locally, first checkout the code. Then run the tests using uv:

cd datasette-plot
uv run pytest

This will create a virtual environment and install the dependencies and test dependencies automatically.