Skip to content

bgins/sparkline-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sparkline-svg

Sparkline SVG is a sparkline generator that compiles to a Wasm component.

Try the CLI example to generate sparkline SVGs using the Homestar runtime.

Build

Build with a Wasm target.

cargo build --target wasm32-unknown-unknown

Componentize

Componentize the Wasm binary.

wasm-tools component new target/wasm32-unknown-unknown/debug/sparkline_svg.wasm -o output/sparkline_svg.wasm

Features

The vector-effects feature uses vector-effect="non-scaling-stroke" and is set by default. If your use case does not support vector effects, compile with:

cargo build --target wasm32-unknown-unknown --no-default-features

About

A Sparkline SVG generator as a Wasm component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages