Plotly.react has the same signature as Plotly.newPlot above, and can be used in its place to create a plot, but when called again on the same <div> will update it far more efficiently than Plotly.newPlot, which would destroy and recreate the plot. Plotly.react is as fast as Plotly.restyle/Plotly.relayout documented below.
This article is about combining vuejs and a chart framework/library plotly.jsI’ve been using this combination for about 6 months now and felt like writing about my solutions and ideas to combine these systems. Plotly.js has a implementation for react but not for angular or vuejs or similar frameworks.This implementation is not really complicated or hard to understand but maybe it will be able to help people skip the struggles I had. In this article I make use of the reactive properties but I will write another article that uses a global eventBus to control the charts. This will give you more control on when to update and if updates went correctly.