fable-graphics
fable-graphics copied to clipboard
Using DC in Elmish apps
What I've managed to achieve reading the binding file and https://github.com/dc-js/dc.js/blob/master/web/examples/line.html:
let root model dispatch =
div []
[ let chart = Globals.lineChart "#chart"
yield
chart
.width(768.)
.height(480.)
.x(Scale.Globals.linear().domain([|0.; 20.|]))
.renderLabel(true)
.yAxis("Y")
.dimension()
.group()
.renderHorizontalGridLines(true)
]
:))