-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
After having played a bit with d3 .. It's really easy to get exceptions by using data not exactly the way it's supposed to be used.
My understanding is that the safe idiom is :
selection
|. data (fun d i -> ... )
|- nest enter [ ... ]
|- nest update [ ... ]
|- nest exit [ ... ] with selection something obtained from select or selectAll (not run).
Is it right ? If that's the case, why not just hardcode it ?
I propose adding the type selection returned by selecting functions and:
val with_data :
selection -> ('a -> int -> 'b list) ->
enter:('b,'b) t -> update:('b,'b) t -> exit:('b,'b) t -> ('a, 'b) tMetadata
Metadata
Assignees
Labels
No labels