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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Dhruvin
Helper III
Helper III

Highcharter visual run in R Studio but not in Power BI Desktop

I have created one Highchart using R and Power BI in R Studio.

Below is a code for the same.

# Input load. Please do not change #
`dataset` = read.csv('C:/Users/spfarm/REditorWrapper_100adf83-d18c-428a-a5c8-0ddab4aeb0b1/input_df_49436338-78cc-4ac0-b4b2-3a828f25c90d.csv', check.names = FALSE, encoding = "UTF-8", blank.lines.skip = FALSE);
# Original Script. Please update your script content here and once completed copy below section back to the original editing window #
##############################
install.packages("highcharter")
library(highcharter)

hc <- highchart() %>%
  hc_xAxis(categories = dataset$Month) %>%
  hc_add_series(name = "London", data = dataset$London) 
  
  hc

The above code will generate following output in R Studio

samp.png

 

Now, when I run the same code in Power BI R script visual, it throws following error.

"No image was created. The R code didn't result in creation of any visuals. Make sure your R script results in a plot to the R default device."

 

How to resolve this issue?

 

2 REPLIES 2
jothi_prakash_a
Frequent Visitor

Is there any update to this thread?

I'm having a similar situation.

v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Dhruvin,

 

Based on my research, only plots that are plotted to the R default display device are displayed correctly on the canvas. Please have a look at below similar threads:

R visuals with the DiagrammeR package don't work in Power BI Desktop and Power BI Service

R graphics libraries does not work in PBI?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors