Splunk Search

Is there a way to control elipsis in Pie chart labels?

IgorB
Path Finder

I'm trying to control elipsis behavior in pie chart lables - I need to either control the length of the label or at least make sure that text overflow is set to elipsisEnd.
I've tried setting


<param name="charting.legend.labelStyle.maximumWidth">500</param>
<param name="charting.legend.labelStyle.wordWrap">True</param>
<param name="charting.legend.labelStyle.overflowMode">ellipsisEnd</param>

but Splunk seems to ignore those params.

Ideas?

alt text

Tags (2)
0 Karma
1 Solution

jonuwz
Influencer

Yup.

The labels on a pie chart aren't the legend - they're properties of the chart itself

Notice the labelStyle property is a textBlock

The overflowMode property of a textBlock is supported in JSChart - but for legend items only.

So you need to use FlashChart and not JSChart for this to work.

<param name="charting.chart.labelStyle.maximumWidth">30</param>
<param name="charting.chart.labelStyle.wordWrap">True</param>
<param name="charting.chart.labelStyle.overflowMode">ellipsisEnd</param>
<module name="FlashChart"/>

alt text

View solution in original post

jonuwz
Influencer

Yup.

The labels on a pie chart aren't the legend - they're properties of the chart itself

Notice the labelStyle property is a textBlock

The overflowMode property of a textBlock is supported in JSChart - but for legend items only.

So you need to use FlashChart and not JSChart for this to work.

<param name="charting.chart.labelStyle.maximumWidth">30</param>
<param name="charting.chart.labelStyle.wordWrap">True</param>
<param name="charting.chart.labelStyle.overflowMode">ellipsisEnd</param>
<module name="FlashChart"/>

alt text

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...