Hi All,
Anyone experience issue with Plotly Viz showing blank canvas when trying to add it to Dashboard with R in Jupyter Notebook ?
I can run the below code in R Notebook and it shows the interactive time series plot. But when you try to add it from Dashboard, that particular code output is showing blank (White Canvas).
library(plotly)
today <- Sys.Date()
tm <- seq(0, 600, by = 10)
x <- today - tm
y <- rnorm(length(x))
fig <- plot_ly(x = ~x, y = ~y, mode = 'lines', text = paste(tm, "days from today"))
fig
But it run ok and show the viz in Python though. Below is python code. It ran fine and show up in the Dashboard.
import plotly.graph_objects as go
animals=['giraffes', 'orangutans', 'monkeys']
fig = go.Figure([go.Bar(x=animals, y=[20, 14, 23])])
fig.show()
Thanks,
------------------------------
Lyn
------------------------------
#CognosAnalyticswithWatson