Splunk Search

Chart column widths

chrmcq
Explorer

How do I specify a minimum width for columns in a column chart?

The documentation very usefully says
columnStyle style The properties to apply to column sprites in column charts. See the sprite defaults
but there are no examples of the syntax and the intuitively obvious choice of
option name="charting.chart.columnStyle.maximumWidth"
does nothing.

Nor do these:

option name="charting.chart.columnStyle.spriteMinimumWidth"

option name="charting.chart.sprite.width"

In general the developer documentation would benefit greatly from more syntax explanation and examples. Can anyone advise what option or param is required to set sprite minimumWidth for a column chart?

Thanks

Tags (2)

chrmcq
Explorer

adaniel8 - sorry, that doesn't work

0 Karma

Ant1D
Motivator

no problem. happy to help 🙂

0 Karma

chrmcq
Explorer

Brilliant, that works perfectly. Many thanks

0 Karma

Ant1D
Motivator

I realise that this doesn't quite cover minimumWidth but it is a start. I will look into minimumWidth

0 Karma

Ant1D
Motivator

Hi, I have changed my answer again and I tested it this time. The answer allows you to control the width of the column chart cells

0 Karma

Ant1D
Motivator

Yeah I realised after posting it. I need to test it properly

0 Karma

chrmcq
Explorer

Thanks but i want to control the width of columns shown in a chart, not the width of the chart

0 Karma

Ant1D
Motivator

Hi,

The param (advanced XML) for specifying the width of a chart cell is:

<param name="charting.chart">column</param>

<param name="charting.chart.columnStyle.width">1</param>

This makes all of your column chart cells have a width of 1 pixel. Change the number as necessary

0 Karma

dmcguerty
Explorer

Nice. Now how about simple XML? Any syntax there?

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...