fable-graphics icon indicating copy to clipboard operation
fable-graphics copied to clipboard

Using DC in Elmish apps

Open vasily-kirichenko opened this issue 8 years ago • 0 comments

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)

    ]

:))

vasily-kirichenko avatar Dec 29 '17 18:12 vasily-kirichenko