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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...