-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Thanks and congrats @alanjones2 for this great tutorial, about how to use Plotly directly with Flask + AJAX!
Small question: why do you create a new plot on each update after an AJAX call?
https://github.com/alanjones2/Flask-Plotly/blob/main/plotcallback-gm2/templates/chartsajax.html#L10
function cb(selection) {
$.getJSON({
url: "/callback", data: { 'data': selection }, success: function (result) {
Plotly.newPlot('chart', result, {});;
}
});
}
Isn't there a way to do something else than newPlot, but rather "update plot data"?
Metadata
Metadata
Assignees
Labels
No labels