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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...