Reply
Highlighted
Frequent Visitor
Posts: 2
Registered: ‎01-31-2019
Accepted Solution

[Leaflet] Power BI custom visual - Script keep loading and is not working

Hello everyone,

 

It's my first post to this forum, I hope I will find some help.

I am a beginner using R and Power Bi but my goal is to be able scripting on leaflet maps using R in Power Bi.

 

Here is a link to my actual folder  (I don't know if i provide enough informations here so .. )

 

Here is my script.r file : 

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

############### Library Declarations ###############
install.packages("tidyverse")

####################################################

################### Actual code ####################
library(leaflet)
library(plotly)
library(tidyverse)
library(ggplot2)
library(htmlwidgets)
library(XML)
library(sp)
library(maps)


m <- leaflet() %>%
  addTiles() %>%  # Add default OpenStreetMap map tiles
  addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R")
m  # Print the map

####################################################

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

I would like to get it working like the first example from this website

 

And this is what I get  , it keeps loading for 5 minutes then a message that says that the script stop loading after 5 minutes.

 

Pbiprob.JPG

 

(the arrow is supposed to show the loading circle)

 

Thanks for your help ! 

 

Have a nice day


Accepted Solutions
Moderator
Posts: 1,660
Registered: ‎12-02-2016

Re: [Leaflet] Power BI custom visual - Script keep loading and is not working

We suggest to send email to R-script support: Power BI R Custom Visuals Support <pbircvsupport@microsoft.com>

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post


All Replies
Moderator
Posts: 1,660
Registered: ‎12-02-2016

Re: [Leaflet] Power BI custom visual - Script keep loading and is not working

We suggest to send email to R-script support: Power BI R Custom Visuals Support <pbircvsupport@microsoft.com>

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Frequent Visitor
Posts: 2
Registered: ‎01-31-2019

Re: [Leaflet] Power BI custom visual - Script keep loading and is not working

Okay, I will try this ! 

 

Thank you very much Smiley Happy