Call this function typically in boot
Renders a sparkline graph when the page loads
Renders a sparkline graph when the page loads
- the id of the canvas HTML element
- the style of the chart (LINE, BAR)
- the amplitudes to be rendered
- Sparklines options. See http://www.willarson.com/code/sparklines/sparklines.html
Renders a canvas element but makes sure that sparklines JS script dependency will be rendered.
Renders a canvas element but makes sure that sparklines JS script dependency will be rendered.
- the id of the canvas HTML element
- the stylesheet class
Returns a JsExp that draws a sparklines graph.
Returns a JsExp that draws a sparklines graph. Can be combimed with other JsExp's to render the graph whenever needed.
- the id of the canvas HTML element
- the style of the chart (LINE, BAR)
- the amplitudes to be rendered
- Sparklines options. See http://www.willarson.com/code/sparklines/sparklines.html
Facilitates Sparklines from http://www.willarson.com/code/sparklines/sparklines.html integration into Lift applications.