The d3js package

[Tags:bsd3, library]

A library for visualization on a web browser. This works as a DSL that generates JavaScript source code working with D3.js ( library.

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.

 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]))

You can just put the JavaScript file in an HTML file like the following to show a chart.

   <div id='div1'></div>
   <script charset='utf-8' src=''></script>
   <script charset='utf-8' src='generated.js'></script>

See D3JS.Example for more examples.


Dependencies base (==4.6.*), mtl, random, text [details]
License BSD3
Author Nebuta
Category Graphics
Home page
Uploaded Sun Sep 22 06:18:24 UTC 2013 by nebuta
Distributions NixOS:
Downloads 487 total (11 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees