Dashboards & Visualizations

Using labelStyle ellipsisEnd

Simon_Shelston
Splunk Employee
Splunk Employee

This is a simple question, caused by the fact that I have a hard time constructing the right form of a property when reading your documents. I want to move the ellipsis on a legend to the end of the string, which I see is a textBlock that is referred to by legend, and is in a property named overflowMode. So I think I need something like

<param name="charting.legend.labelStyle">ellipsisEnd</param>

But that doesn't do it. What form do I use for this line, and to save future questions how do I figure that out based on the documents? When I look at the legend definition is says there is a property called labelStyle, with the value "style" which of course points me back to the textBlock page that has the overflowMode – but that property isn't in the list of properties on the legend page, so I basically go around in a circle trying to formulate the parameter name and value to use

Tags (2)
1 Solution

Jason
Motivator

Don't you just love Advanced XML. Turns out you're missing just one bit:

<param name="charting.legend.labelStyle.overflowMode">ellipsisEnd</param>

And if you want to do the same thing in your mouseover label on the graph itself, you can use this:

<param name="charting.tooltip.content.fieldStyle.overflowMode">ellipsisEnd</param>

View solution in original post

Jason
Motivator

Don't you just love Advanced XML. Turns out you're missing just one bit:

<param name="charting.legend.labelStyle.overflowMode">ellipsisEnd</param>

And if you want to do the same thing in your mouseover label on the graph itself, you can use this:

<param name="charting.tooltip.content.fieldStyle.overflowMode">ellipsisEnd</param>
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...