Closed
Description
#498 has introduced function marks: () => svg node
That render function is called like any other and receives as input (data, scales, channels, dimensions), with empty data and channels, all the instantiated scales, and complete dimensions.
It would be useful I think to design and document this API (for all marks). The changes I'd suggest would be:
- pass the facet's "content" (i.e. "Chinstrap")
- order the API as (dimensions, scales, facet, data, channels)
- change the dimensions in such a way that we can ignore margins (ie width would be the current width-marginLeft-marginRight, and the would already be translated by marginLeft, marginTop)