plotly animations (#1732)

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
Dawood Khan 2022-07-12 00:40:15 +02:00 committed by GitHub
parent 2d07df74e6
commit 8947e8f9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@
afterUpdate(() => {
if (value && value["type"] == "plotly") {
let plotObj = JSON.parse(value["plot"]);
Plotly.newPlot(plotDiv, plotObj["data"], plotObj["layout"]);
Plotly.react(plotDiv, plotObj);
} else if (value && value["type"] == "bokeh") {
document.getElementById("bokehDiv").innerHTML = "";
let plotObj = JSON.parse(value["plot"]);