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

Safe HaskellSafe-Inferred

D3JS.Func

Contents

Description

This module defines original functions of D3.js, as well as some low-level helper functions.

Synopsis

Selection

d3Root :: Chain () SelectionSource

d3 object in D3.js

selectAll :: Sel2 a => Selector -> Chain a SelectionSource

selectAll()

Data manipulation

dataD3 :: Var' r -> Chain Selection (SelData r)Source

data() in D3.js. Assigns new data to selection.

enter :: Chain (SelData r) (SelData r)Source

enter()

exit :: Sel a => Chain a aSource

exit()

appendD3 :: Text -> Chain (SelData a) (SelData a)Source

append()

Attributes and styles

attrt :: Text -> Text -> Chain a aSource

style :: Text -> Text -> Chain a aSource

classed :: [Text] -> Chain a aSource

classed(). Take a list of classes as an argument.

opacity :: Sel a => Double -> Chain a aSource

fill :: Sel a => Text -> Chain a aSource

Transitions

transition :: Sel2 a => Chain a TransitionSource

transition()

transition' :: Sel2 a => Double -> Chain a TransitionSource

trasition().delay(time)

Helper functions for Chain a b type

func' :: FuncName -> [JSParam] -> Chain a aSource

Function that does not change type in a method chain.