Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot.image render SVG elements #1861

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test
  • Loading branch information
mkfreeman committed Sep 14, 2023
commit 59dfcffdf4d587da76a7db0c4b0e56f4e7991c1c
11 changes: 11 additions & 0 deletions test/plots/image-render-svgs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as Plot from "@observablehq/plot";

export async function imageRenderSvgs() {
return Plot.image([0], {
frameAnchor: "middle",
src: () => Plot.barX([1, 2, 3], {y: d => d}).plot(),
width: 300,
height: 200,
imageRendering: "pixelated"
}).plot({width: 300, height: 200});
}
Loading