This page demonstrates how to include images in JSPlots pages.
This is an example image loaded from a file path
images.jpeg
SVG images are embedded as XML for best quality
jl_jGZM3gbIre.svg
This demonstrates using a custom save function
jl_B2JqroVEt0.svg
Below you can see how to combine static images with interactive charts.
Data: df
Images are base64-encoded and embedded directly in the HTML file.
Pros: Single file, easy to share, no external dependencies
Cons: Larger file size (especially for PNG/JPEG)
Images are saved to a pictures/ subdirectory and referenced by the HTML.
Pros: Smaller HTML file, easier to update images separately
Cons: Multiple files to manage
This page demonstrated all key Picture features:
Tip: For external format examples, use the provided open.sh or open.bat scripts to avoid CORS errors when viewing locally.
This page was created using JSPlots.jl.