Is it possible to use R Plotly library in R Script Visual of Power BI?

后端 未结 2 1011
醉话见心
醉话见心 2020-12-19 07:13

Has anyone tried using Plotly or Highchart in R Script Visual of Power BI,

when I try this in R script editor and Run:

lib         


        
2条回答
  •  眼角桃花
    2020-12-19 08:06

    The reason is that right now Power BI only supports render charts created by R visualization component as PNG.

    Try the following:

    p <- plot_ly(x = dataset$period, y = dataset$mean, name = "spline", line = list(shape = "spline"))
    plotly_IMAGE(p, format = "png", out_file = "out.png")
    

提交回复
热议问题