cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
vicente-iii Frequent Visitor
Frequent Visitor

Problems Using Plotly to Plot 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?

2 REPLIES 2
Community Support Team
Community Support Team

Re: Problems Using Plotly to Plot Iris Dataset

Hi @vicente-iii ,

 

Did you download NodeJS 4.0+ Required (5.0 recommended)  from https://nodejs.org/.

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
vicente-iii Frequent Visitor
Frequent Visitor

Re: Problems Using Plotly to Plot Iris Dataset

Yes, I downloaded from that website. I downloaded the one on the right side (12.6.0 Current)

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors