See here for the example code that generated this page Also see here for a different example of Slides using externally held data images

Slides Examples

This page demonstrates the interactive Slides chart type in JSPlots.




Example 1: Slides from Directory Pattern

This example loads images from a directory following the pattern: prefix!group1!group2!...!slidenum.extension

The slides below were created from SVG files in the pattern: sales!Region!Quarter!SlideNum.svg

Features:




Sales Analysis by Region and Quarter

Use filters to switch between regions and quarters. Each region/quarter has 3 slides.

Filters

North - Q2 3 Slide 3 of 3 - Sample Data Visualization
North - Q1 2 Slide 2 of 3 - Sample Data Visualization
South - Q2 1 Slide 1 of 3 - Sample Data Visualization
North - Q2 1 Slide 1 of 3 - Sample Data Visualization
South - Q1 2 Slide 2 of 3 - Sample Data Visualization
North - Q1 3 Slide 3 of 3 - Sample Data Visualization
South - Q1 3 Slide 3 of 3 - Sample Data Visualization
South - Q1 1 Slide 1 of 3 - Sample Data Visualization
South - Q2 2 Slide 2 of 3 - Sample Data Visualization
South - Q2 3 Slide 3 of 3 - Sample Data Visualization
North - Q1 1 Slide 1 of 3 - Sample Data Visualization
North - Q2 2 Slide 2 of 3 - Sample Data Visualization
Slide 1 / 3
0.5s

Keyboard shortcuts: ← Previous, → Next, Space Play/Pause




Example 2: Slides Generated from Function (VegaLite.jl)

This example generates slides dynamically using a custom chart function.

The function receives the dataset, group values, and slide number, then generates a chart.

Charts are automatically saved and embedded (or stored externally based on dataformat).




Product Sales Analysis (VegaLite.jl Charts)

Generated slides using VegaLite.jl. Shows sales and profit for each product by category across 3 months.

Filters

ProfitSales0100200300400500600700800Amount ($)Electronics - Gadget - Month 2
ProfitSales0100200300400500600700Amount ($)Electronics - Gadget - Month 3
ProfitSales0100200300400500600700800900Amount ($)Electronics - Doohickey - Month 1
ProfitSales0100200300400500600Amount ($)Electronics - Widget - Month 1
ProfitSales01002003004005006007008009001,000Amount ($)Electronics - Widget - Month 2
ProfitSales0100200300400500600Amount ($)Electronics - Doohickey - Month 3
ProfitSales050100150200250300350400450500550Amount ($)Electronics - Doohickey - Month 2
ProfitSales0100200300400500600Amount ($)Electronics - Widget - Month 3
ProfitSales050100150200250300Amount ($)Electronics - Gadget - Month 1
Slide 1 / 3
1.5s

Keyboard shortcuts: ← Previous, → Next, Space Play/Pause




Example 4: Embedded JPEG Images (Bitmap Format)

This example demonstrates embedding JPEG photographs (bitmap format) in the HTML file.

Unlike SVG which stores drawing instructions, JPEG images are encoded as base64 binary data.




Photo Slideshow (Embedded JPEG)

JPEG images embedded as base64 data. Each image is a bitmap encoded as text.

Slide Slide
Slide 1 / 2
2.0s

Keyboard shortcuts: ← Previous, → Next, Space Play/Pause




Summary

This page demonstrated four ways to use the Slides chart type:

Image Format Comparison

Storage Options

Key Features

Tips:


This page was created using JSPlots.jl.