-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Question] How to update data
and layout
one time for both ?
#11
Comments
data
and layout
one for all ?data
and layout
one time for both ?
Not sure I understand. |
Sorry. I have to make myself more clear.
|
Very interesting question. It is not straight forward. I think, we could use the js function |
Before adding more complexity to the code (and more code to maintain) I would like to actually validate the initial assumption: that separate updates decrease performance. Are there any metrics to back that? Without conclusive metrics I'm not sure that's the case (although it's possible). But the size of the data payload it's the same for both approaches and I expect that an equal amount of UI re-paints will occur as updates are propagated on the front. So I would like some info backing that assumption, showing off a clear performance benefit. |
Good point, I'll try to checkt it |
The direct comparison with Plotly.js is not accurate as that is a one tier implementation, while ours is 3-tiered: Julia, Vue, and Plotly. There is state in Julia, state in Vue, and state in Plotly. And these changes are propagated across the 3 tiers. For example, how will the updates be performed by Vue as the tier between Julia and Plotly? |
I'd compare the two update methods. One updating layout and data sequentially with listeners and one updating data data without listeners and data with listeners as this is my peoposed work around. But I would first do it manually at the browser console... |
What about having a method which takes a new type of object which has fields for both |
That would be pretty much like the Plot struct in PlotlyBase ... |
I find that separate update of
data
andlayout
will decrease the performance through the methodplot(:data, layout=:layout)
.Is that possible to update
data
andlayout
one time for both? (The update behavior is similar toPlotly.update
inPlotly.js
)The text was updated successfully, but these errors were encountered: