https://github.com/datasette/datasette-plot
A Datasette plugin for making data visualizations with Observable Plot
https://github.com/datasette/datasette-plot
datasette datasette-p observableplot
Last synced: 3 months ago
JSON representation
A Datasette plugin for making data visualizations with Observable Plot
- Host: GitHub
- URL: https://github.com/datasette/datasette-plot
- Owner: datasette
- License: apache-2.0
- Created: 2023-10-19T16:22:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-21T23:21:38.000Z (almost 2 years ago)
- Last Synced: 2025-06-09T01:45:04.680Z (4 months ago)
- Topics: datasette, datasette-p, observableplot
- Language: TypeScript
- Homepage: https://datasette.io/plugins/datasette-plot
- Size: 301 KB
- Stars: 21
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# datasette-plot
[](https://pypi.org/project/datasette-plot/)
[](https://github.com/datasette/datasette-plot/releases)
[](https://github.com/datasette/datasette-plot/actions?query=workflow%3ATest)
[](https://github.com/datasette/datasette-plot/blob/main/LICENSE)A Datasette plugin for making data visualizations with [Observable Plot](https://observablehq.com/plot/).
## Installation
Install this plugin in the same environment as Datasette.
```bash
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](https://observablehq.com/plot/features/marks) from Plot, including dot, line, area, bar, and more.
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 create a new virtual environment:
```bash
cd datasette-plot
python3 -m venv venv
source venv/bin/activate
```Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```To run the tests:
```bash
pytest
```