Documentation
¶
Overview ¶
templ: version: v0.3.977
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Props ¶
type Props struct {
Data []float64 // data points to plot
Width int // SVG width in pixels (default 60)
Height int // SVG height in pixels (default 24)
Color string // stroke/dot color (default "currentColor")
StrokeWidth float64 // line width (default 1.5)
ShowDot bool // show dot at last data point (default true)
DotRadius float64 // radius of end dot (default 2.5)
Class string
}
Props configures the sparkline SVG.
Click to show internal directories.
Click to hide internal directories.