Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I built a R customised visual using the plotly library and "scattermapbox" type. this visual works properly in Power BI desktop. However, when I publish it online, the map could not be plotted.
source code in script.r:
source('./r_files/flatten_HTML.r')
############### Library Declarations ###############
libraryRequireInstall("dplyr");
libraryRequireInstall("plotly");
####################################################
################### Actual code ####################
p <- plot_ly(
type = 'scattermapbox',
lat = 48.05176,
lon = -122.17708,
mode="markers",
marker=list(size = 10, color = "red")
) %>%
layout(
mapbox = list(
style="carto-positron",
center= list(lon=-122.17708,lat = 48.05176)))
###################################################
############# Create and save widget ###############
internalSaveWidget(config(p, displayModeBar = FALSE), 'out.html')
####################################################
screenshot in desktop:
screenshot in Power BI online service:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.