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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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