Skip to content

Conversation

@mbostock
Copy link
Member

@mbostock mbostock commented Jul 3, 2022

This allows different versions of Plot to be composed, e.g.: https://observablehq.com/d/2f8e482dc7cc105f

The duck test for Mark here is limited: it only tests for a render method, but it will crash downstream if the filter or initialize methods are not defined. We could test for those, too, or provide default implementations, but I figure this is fine for now.

@mbostock mbostock requested a review from Fil July 3, 2022 14:41
@mbostock mbostock merged commit 3371256 into main Jul 3, 2022
@mbostock mbostock deleted the mbostock/duck-mark branch July 3, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants