-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the "resize" helper triggers twice when the returned chart depends on a generator/input #1563
Comments
Yep, the problem is rendering the chart changes the height of the container, which then triggers the ResizeObserver. This is the expected behavior when you pass a |
thanks for the clarification! |
PS @mbostock : in cases where we know that both width and height will not change as a consequence of changes in |
@ccattuto This would be better as a discussion question rather than tacking on to this (no longer related) issue. But it sounds like you want to avoid reacting to |
Thanks. I'll move this to a discussion, as it may be of interest to others. |
Consider the example below, where
activityChart()
returns a Plot.plot() object, andattRange
is a generator/input. On instrumentingactivityChart()
and triggering one change ofattRange
it is observed thatactivityChart()
gets called twice. This looks like an issue for cases when the plot is heavy to compute.The text was updated successfully, but these errors were encountered: