d3js-0.1.0.0: Declarative visualization on a web browser with DSL approach.

Safe HaskellSafe-Inferred

D3JS.Chart

Description

This modules provides high-level functions for drawing common charts, such as bar charts and scatter plots. Those functions also exemplify how to compose primitive functions to achieve complex drawing. This module will be expanded in the near future.

Synopsis

Documentation

box :: Selector -> (Double, Double) -> St (Var' Selection)Source

box parent (w,h) makes an SVG container in a parent element with dimension w x h.

addRect :: Sel2 a => Var' RectData -> Chain a (SelData RectData)Source

Add rectangles with an array of objects {x: x, y: y, width: w , height: h}

disappear :: Sel2 a => Double -> Double -> Var' a -> St ()Source

disappear delay duration

addFrame :: Sel2 a => (Double, Double) -> (Double, Double) -> Var' a -> St ()Source