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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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