cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the pie chart legend?

Hillman
Contributor

I am currently creating a dashboard with a pie chart. The legend displayed is some internal number code that represent different teams (the number to the right). It causes difficulties for the viewer when they need to translate the mapping whenever they view the chart.

Hillman_0-1729466596538.png

Is there any way that we can change the legend name into some friendlier name?

2 REPLIES 2

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

Hey @Hillman 

Not sure if there is a better way but you could use partitions to add a name as shown below.

builtin:host.availability:splitBy("dt.entity.host")
:partition("Partition"
 ,dimension("Test1",eq("dt.entity.host","HOST-056FB9BA2F69C67C"))
 ,dimension("Test2",eq("dt.entity.host","HOST-14DC825E0C327E32"))
 ,dimension("Test3",eq("dt.entity.host","HOST-11A07A6C55A0C23C")))

Fin_Ubels_0-1729469275791.png

 

Hillman
Contributor

@Fin_Ubels Thank you for your suggestion! I am now able to add labels to the legend 😄

Hillman_0-1729486225232.png

 

Featured Posts