Picture Examples

This page demonstrates how to include images in JSPlots pages.




example_image

This is an example image loaded from a file path

example_image

images.jpeg




svg_diagram

SVG images are embedded as XML for best quality

JSPlots Picture Example

jl_09ytQLO78b.svg




custom_chart

This demonstrates using a custom save function

Mock Chart: bar Data: 1, 2, 3, 4, 5

jl_Mv4hUXOhIv.svg




Mixed Content Example

Below you can see how to combine static images with interactive charts.




Monthly Trend

Plot Attributes


Data: df




Embedded vs External Image Storage

Embedded Format (default)

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)

External Format

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




Summary

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.