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
I often find that I sometimes want to create a specific internal scale that utilize the scale generation stuff we already have for DataGraphic. Making this easier will help unlock:
easy custom small multiples
in-plot grouping / faceting
This is probably going tor equire more than one component. I'd imagine
OneDimensionalScale.svelte – allows user to embed a 1d scale anywhere. Would support type, domain, range, then output let:scale.
TwoDimensionalScale.svelte – functionally the same as what DataGraphic.svelte natively offers today. Takes xType, yType, xDomain, yDomain, and I guess xRange, yRange. Provides slot props let:xScale and let:yScale.
An ideal end-state is probably this:
(1) scale generation functions in their own files, including logic to update scales based on parameters
(2) these two components built off of this functionality
(3) the TwoDimensionalScale.svelte component should probably be what determines the prevailing scales logic in DataGraphic.svelte
The text was updated successfully, but these errors were encountered:
I often find that I sometimes want to create a specific internal scale that utilize the scale generation stuff we already have for
DataGraphic
. Making this easier will help unlock:This is probably going tor equire more than one component. I'd imagine
OneDimensionalScale.svelte
– allows user to embed a 1d scale anywhere. Would supporttype
,domain
,range
, then outputlet:scale
.TwoDimensionalScale.svelte
– functionally the same as whatDataGraphic.svelte
natively offers today. TakesxType
,yType
,xDomain
,yDomain
, and I guessxRange
,yRange
. Provides slot propslet:xScale
andlet:yScale
.An ideal end-state is probably this:
(1) scale generation functions in their own files, including logic to update scales based on parameters
(2) these two components built off of this functionality
(3) the
TwoDimensionalScale.svelte
component should probably be what determines the prevailing scales logic inDataGraphic.svelte
The text was updated successfully, but these errors were encountered: