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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...