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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors