datasette / datasette/datasette-plot

Enhancement request: Output chart as static png base64 text encoded data

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
28
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Add an option to output static charts as png(s) endocde as base64 text.
This is useful for adding plots to kml files which will allow text encoded png images (of the chart in this case), but in general will not link to images.
An example of this, (not using this plugin), can be seen here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked example at datasette_enrichments_gmap_elevation/init.py and then locate this plugin's chart-output entry point. Confirm how static charts are currently produced, define the option's expected output, and verify that the result is base64-encoded PNG text suitable for embedding in KML.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.