Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
141507
Helper I
Helper I

Use HighCharter Package/hchart() In Power Bi

library(xts)
library("forecast")
library(highcharter)
dates=as.Date(dataset$ReceivedDate,"%Y-%m-%d")
xs=xts(dataset$Volume,dates,frequency=12)
#plot(xs)

arima1 <-arima(xs,order=c(3,0,1),seasonal=list(order=c(0,1,2),period=12))
q=forecast(arima1,h=60,level=c(80,82))
hchart(q)

Hi, 

I am using Highcharter R package for tooltip in the plot.  I am using above code to generate tooltip over the forecast plot. When I use this in R studio, it is plotting well with sufficient tooltips. When I use in power BI, I am getting the message "No image/visuals created". Can you please help us in this regard.

 

Regards,

Senthil D

 

 

7 REPLIES 7
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @141507,


In Power BI desktop, you need to import your resource data into table from "Get Date" on home page. Then you select the column as value level, please see the fields in blue line. You will find the dataset generates automatically in the black line zone.

1.PNG

Then please type R script in red line zone, click run, you will get the expected result based on R script.

Best Regards,
Angelia

Hi Angelia,

 

I did the same way only, framed necessary data set and sets as value level. The problem I am facing is visual not created. It says "No image/visual created". I am using hchart function to plot the forecast values.

 

Is anything to I need to change in my code ?

 

I shared my R code with this topic intially and attached the screenshots for your reference. Please check and provide us possible suggestions. If you need

 

Screenshot_1.JPGScreenshot_2.JPG

 

 

 

Regards,

Senthil D

Hi @141507,

When executing a R script that results in an error, the R visual is not plotted and an error message like yours is displayed on the canvas. Do you mind share your .pbix file for further analysis?

Best Regards,
Angelia

Hi Angelia,

 

I could not able to find the option to attach .pbix file in this reply blog. However I attached the code. Please check.

dataset <- data.frame(ReceivedDate,Volume)
dataset <- unique(dataset)

library(xts)
library("forecast")
library("highcharter")
dates=as.Date(dataset$ReceivedDate,"%Y-%m-%d")
xs=xts(dataset$Volume,dates,frequency=12)
#plot(xs)
arima1 <-arima(xs,order=c(3,0,1),seasonal=list(order=c(0,1,2),period=12))
q=forecast(arima1,h=60,level=c(80,82))
hchart(q)

Regards,

 

Senthil D

Hi,

 

Is any update on my above query.

 

Regards,

Senthil D

Anonymous
Not applicable

Hi @141507 I'm trying to do the same thing as you, plot an interective graph from Rstudio in Power BI. I tried using dygraphs and plotly, but both give me the "Cant display image(...)" message. Did you figure out how to do this? Would you mind sharing? Thank you!

Hi, Unfortunately I did not get any solution for this. Hope Power BI Support team will revert.

 

Regards,

Senthil D

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.