Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 451 Bytes
module plot
import mobl
control plot(id:String, s:Style) {
<div id=id class=s></div>
external sync function lineChart(id:String, data:[[[Num]]]) : void
lineChart() plots a chart in the container at #id
data is an array of series.
Series are arrays of points.
Points are x,y tuples */
__ns.lineChart = function(id, data)
var d = data;
var el = $("#"+id);
$.plot(el, data);