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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Booth070
Frequent Visitor

Tooltips in Custom R visual

I have followed the git tutorial to create an html custom visual with R. The visual is currently working if I add up to one tooltip column but crashes if I try to add more with the error:

 

"Aesthetics must be either lenght 1 or same as the data (754): x,y,colour,label"

 

I know it's possible to add more than one label to ggplot and this show correctly when using plotly specifying them as "label=c("label1","label2"...) so I am thinking that the problem has to do on how I am processing it on my script. The only line where I address tooltips is:

 

"geom_point(data = locations, mapping = aes(x = longitude, y = latitude, color = count, label= tooltip)"

 

Any help will be really appreciated, thanks in advance!

4 REPLIES 4
v-viig
Community Champion
Community Champion

We'd recommend to send this issue to pbircvsupport@microsoft.com.

There're experienced R-script developers who might assist with this issue.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Thanks, Ignat. Sent them and email this morning.

 

bw

Anonymous
Not applicable

I am facing the same problem. Did  you find a way to add tooltips to R visual ?

v-viig
Community Champion
Community Champion

We'd recommend to take a look at this topic.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.