This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi! I'm trying to incorporate a R-Custom Visual using leaflet. I've been able to load the visual and everything works except the base map.
Here's a snippet with the tile part of the code:
shape <-leaflet()%>%
addTiles("https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png")%>%
addPolygons(data = treatmentplants,
color =~pal(DWMLabel),weight = 1,smoothFactor = 0.5,
opacity = 0.5, fillOpacity = 0.5,
highlightOptions = highlightOptions(color = "white", weight = 2,
bringToFront = FALSE),
I switched from my original input which was " addProviderTiles(providers$Esri.WorldGrayCanvas)%>%" because of this link on stackoverflow. Both ways aren't working. Is it because the baselayer is coming from online and PowerBI doesn't support that with R custom visuals?
Thanks in advance!
You need to use the renderer that comes with Power BI. Matplotlib, basically.
Does that happen in the Rscript or the in the visual script? Are there examples you could point me too? Thanks!
Create Power BI visuals using R - Power BI | Microsoft Learn - limitations section
I'm creating an R-Custom Visual not an R visual in the PowerBI desktop. I haven't seen any examples about the Matplotlib rendering
Display devices: Only plots that are plotted to the R default display device are displayed correctly on the canvas. Avoid explicitly using a different R display device.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |