Splunk Search

How to adjust chart column width?

dbcase
Motivator

Hi,

I have the below panel. What I'm looking to do is to make the columns in this graph "skinny" (5 pixels or less) so that it can represent an event in time. I've seen answers on Splunk answers that refer to advanced XML (haven't done this before), or sprites (also haven't done this before). If I need to use one of those methods could you walk me thru how?

alt text

1 Solution

pgreer_splunk
Splunk Employee
Splunk Employee

Try playing around with the charting.chart.columnSpacing setting for the bar chart.

For example, I opened up the source for a bar chart with overlay that I had set up. By adding the 'charting.chart.columnSpacing' option and setting it really high (100 in my case) it crunched down the bards to nearly a single pixel depending on how wide I have my browser window scaled within my desktop's resolution.

....        
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
        <option name="charting.legend.placement">right</option>
        <option name="charting.chart.columnSpacing">100</option>
      </chart>
....

A similar question was asked on answers as well, here

View solution in original post

pgreer_splunk
Splunk Employee
Splunk Employee

Try playing around with the charting.chart.columnSpacing setting for the bar chart.

For example, I opened up the source for a bar chart with overlay that I had set up. By adding the 'charting.chart.columnSpacing' option and setting it really high (100 in my case) it crunched down the bards to nearly a single pixel depending on how wide I have my browser window scaled within my desktop's resolution.

....        
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
        <option name="charting.legend.placement">right</option>
        <option name="charting.chart.columnSpacing">100</option>
      </chart>
....

A similar question was asked on answers as well, here

vvemula
Path Finder

Thank you. Its worked for me.

0 Karma

dbcase
Motivator

That worked! And that was Genius!!! Thank you Pgreer!!!

If you will convert your comment to an answer I'll go ahead and accept.

Thanks again!

pgreer_splunk
Splunk Employee
Splunk Employee

done! Glad it worked out for you.

0 Karma

auxeeliya
Engager

It actually determines the space between the bars in the charts. is there a way we can actually set the width of a column?

Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...