mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
plotly animations (#1732)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
parent
2d07df74e6
commit
8947e8f9a4
@ -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"]);
|
||||
|
Loading…
Reference in New Issue
Block a user