You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm a Purescript newbie, trying to rewrite some D3 snippets. I'm currently working on Arc and Pie chart examples, so I've added some wrappers for them in my fork. However, while transcribing http://bl.ocks.org/mbostock/3888852, I've ran into trouble with this part:
If I understand correctly, here we need something like bindData' :: forall oldData newData. (oldData -> newData) -> Selection oldData -> D3Eff (Update newData). However, selectAll always gives us Selection Void, not allowing to modify previously bound data. Can this type signature be made more elaborate?
The text was updated successfully, but these errors were encountered:
clayrat
changed the title
selectAll behaviour
selectAll type
Nov 6, 2015
Hello, I'm a Purescript newbie, trying to rewrite some D3 snippets. I'm currently working on Arc and Pie chart examples, so I've added some wrappers for them in my fork. However, while transcribing http://bl.ocks.org/mbostock/3888852, I've ran into trouble with this part:
If I understand correctly, here we need something like
bindData' :: forall oldData newData. (oldData -> newData) -> Selection oldData -> D3Eff (Update newData)
. However,selectAll
always gives usSelection Void
, not allowing to modify previously bound data. Can this type signature be made more elaborate?The text was updated successfully, but these errors were encountered: