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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.