Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only

Jupyter Notebook R with plotly interactive chart showing blank on Dashboard in 11.1.7

  • 1.  Jupyter Notebook R with plotly interactive chart showing blank on Dashboard in 11.1.7

    Posted Wed November 11, 2020 06:04 PM
    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