Skip to content
Discussion options

You must be logged in to vote

Sorry I missed this. Instead of setting the width from inside the component, it is a better design to change your top-level items that get passed to the <LayerCake> component and then let everything in the chart update, similar to the small multiples example where it tweens the domain and everything else flows from there. If you are able to put a simplified version of your example in a svelte REPL it would be easier to debug a bit.

Edit: See this discussion for an example: #205

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mhkeller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants