Dashboards & Visualizations

How can I use CSS to wrap chart labels instead of truncate them?

andrewtrobec
Motivator

Hello,

As the title suggests, I have a column chart with x-axis labels that are too long to fit under each column resulting in the text being truncated.  Here is an example of what I mean.  For simplicity I have set the labels for each column to "THIS TEXT IS TOO LONG TO FIT COMFORTABLY AS A LABEL".

Untitled.png

What I would like to know is whether it is possible to avoid truncating the text and instead, using CSS, have the text wrap and appear on a second line.  I know I can set the label rotation, but this it not what I want to do.  I want the labels to be horizontal and on multiple lines rather than truncated or rotated.

Any help would be much appreciated.

Best regards,

Andrew

Labels (2)
Tags (3)
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...