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

Universal Diagram length label

rodrigo_alvare1
Dynatrace Pro
Dynatrace Pro

Hello,

Is possible to change the number of chars to show in each point label of an Universal Diagram?

I would like to show a longer string, but now is being truncated with dots (...)

Regards,
Rodrigo

2 REPLIES 2

magdalena_strze
Newcomer

If you ask whether you can change the length of labels in Universal Diagram settings the answer is no, you can't. However you can do it directly in css file. In ud_report.css inside .canvasContainer .pointWrapper .pointLabel { } rule either set max-width to whatever value you need (the text will still not wrap even if it's long) or remove:

white-space: nowrap;       
overflow: hidden;
text-overflow: ellipsis;

and insert:

white-space: pre;
white-space: pre-wrap;
white-space: pre-line;
white-space: -o-pre-wrap;
white-space: -moz-pre-wrap;
word-wrap: break-word;"

(the text should wrap if it's long).

Thank you, that works