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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
vicente-iii
Helper I
Helper I

Problems Creating Custom Visual using Plotly with Iris Dataset

Hi everyone,

 

I'm trying to make R Custom visuals with plotly and have closely followed the guide outlined here from RADACAD. However, when I imported the custom visual to Power BI, it gave me a blank visual and I do not get any error messages:

Plotly Problems.PNGBlank visual in Power BI using Iris Dataset

Whereas I expect to see this:

Iris Dataset.PNG

 

Below is the R script I used (the default when downloading sampleRHTMLVisual):

source('./r_files/flatten_HTML.r')

############### Library Declarations ###############
libraryRequireInstall("ggplot2");
libraryRequireInstall("plotly")
####################################################

################### Actual code ####################
g = qplot(`Petal.Length`, data = iris, fill = `Species`, main = Sys.time());
####################################################

############# Create and save widget ###############
p = ggplotly(g);
internalSaveWidget(p, 'out.html');
####################################################

Has anyone encountered this issue before?

0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors