Data label in Donut chart in Service operation workspace

Avani Shah
Tera Contributor

Hello All,

 

We are using OOB SOW Landing page and have created a new donut report on Task table(group by sys_class_name) by doing changes in SowIncidentLandingPageUtils.
Only for our donut, some of the task lable are not display automatically, like in this case "Incident communication task". The label is however display when hover on the color, but not without it.
Does anyone know how this issue can be fixed in OOB landing page.

AvaniShah_0-1717656700970.png

1 REPLY 1

adityakush24
ServiceNow Employee
ServiceNow Employee

@Avani Shah It is the OOTB par widget behaviour. If the data label text cannot be accommodated, then it will hide the label. Please refer screenshot attached.
In screenshot, you can see, the component was applying visibility: hidden to the label, when I disabled that css, we can see that the text is not fully visible(it should have been '3 - Moderate')

adityakush24_0-1718184826708.png


When the data visualization has enough space, it starts showing the label.
 Small size donut (Not showing 3 - moderate label)

small size.png

When then size of donut is increased, it starts showing the 3 - moderate data label.

little big size.png


This is working as expected since if there is small area to display it should hide the labels which it cannot accommodate to be able to display the donut clearly. On hover, the user will be able to see the data label.

Please mark my answer helpful/correct if it helps solve your problem.

 

Thanks,

Aditya