d3js: Declarative visualization on a web browser with DSL approach.
You can compose operations with a typed DSL with Haskell's abstraction power.
This is still an alpha version, and the structure may be changed in the near future.
A simplest example: drawing a bar chart
import Control.Monad import qualified Data.Text as T import D3JS test :: Int -> IO () test n = T.writeFile "generated.js" $ reify (box "#div1" (300,300) >>= bars n 300 (Data1D [100,20,80,60,120]))
<html> <head> <title>Chart</title> </head> <body> <div id='div1'></div> <script charset='utf-8' src='http://d3js.org/d3.v3.min.js'></script> <script charset='utf-8' src='generated.js'></script> </body> </html>
See D3JS.Example for more examples.
|Dependencies||base (==4.6.*), mtl, random, text [details]|
|Uploaded||by nebuta at Sun Sep 22 06:18:24 UTC 2013|
|Downloads||844 total (11 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
Docs uploaded by user
Build status unknown [no reports yet]
For package maintainers and hackage trustees