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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Cizzno
Regular Visitor

Creating a Custom Gauge Visual

I'm trying to create a custom visual that shows the distribution of data through a visualisation similar to a boxplot. I then want to have a point on that plot that moves along the boxplot depending on the value of a slicer. But the problem is my slicer moves the boxplot and the scale aswell. I created my visual with R and I've included the code below:

 

Dar <- ggplot(data = dataset, aes(x = 0, y = Data)) +  
  scale_color_viridis_d(
  option = "mako", name = "Level:", direction = -1,
  begin = .15, end = .9,
  labels = function(x) paste0(as.numeric(x)*100, "%")
  ) +
  ggdist::stat_interval() +  
  coord_flip() +
  stat_summary(geom = "point", fun = "median", color = "red", size = 6, pch = 17, aes(x = -0.05, y = Data) )
Dar
 
And this is what my visualisation looks like:
 

 

Cizzno_0-1679024888991.png

 

Any help would be greatly appreciated! 

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors