Index | OAT homepage | OpenLink Software

sparkline.js

sparkline.js

Library for drawing Sparklines using SVG.

Objects

OAT.Sparkline(div, options)

Creates a Sparkline inside div;options describes its properties. Its values are the same as in OAT.LineChart. Options can be following:

Methods

OAT.Sparkline::attachData(dataArray)

Adds dataArray to the Sparkline.

OAT.Sparkline::draw()

Draws the Sparkline.

Example


var s = new OAT.Sparkline("myDiv",{});
s.attachData([1,2,3,-5,2,3.7,5,4]);
s.draw();
Copyright (C) 2005-2009 OpenLink Software