Commits

camlspotter committed 095cd0b

redraw requires explicit draw?

  • Participants
  • Parent commits 1f91c5b

Comments (0)

Files changed (1)

File chart3/chart.ml

 
   ignore begin
     Data.get "data.txt" >>= fun rows ->
+
     data##addRows(Js.array (Array.of_list (List.map (fun (x,y) -> 
       Js.array [| Obj.magic x;
                   Obj.magic y; |]) rows)));
+    chart##draw(data, options);
     return ()
   end