All Apps and Add-ons

Add a title to the JSChart or FlashChart?

therealdpk
Path Finder

Is it possible to add a title to a JSChart or FlashChart module? I have read the JSChart/FlashChart documentation and I have tried including a HTML module within the chart module or within its parent HiddenChartFormatter or HiddenPostProcess modules, which can result in the title going to the right place, but also results in Javascript errors ("ReferenceError: Can't find variable: Sideview").

0 Karma
1 Solution

jonuwz
Influencer

If you're using advanced XML, wrap your chart in a HiddenChartFormatter module and set a parameter

<param name="chartTitle">Name of your chart goes here</param>

If you want a larger title and the chart is in its own group in the page, wherever you have set the layoutPanel="panel_row1_col1" add an attribute like group="Name of your chart goes here"

View solution in original post

sideview
SplunkTrust
SplunkTrust

Note the error message that you're seeing is simply because you've forgotten to put the required SideviewUtils module into your view.

It says this on the Sideview Utils homepage as the first thing to know, but it gets missed a lot.

After that you'll be able to use the HTML module as your header and although the built in titles are fine most of the time, I think you'll be happier having the more open more easy to manipulate HTML module.

0 Karma

sideview
SplunkTrust
SplunkTrust

It's common for people to think the common Sideview modules like HTML and Search are Splunk modules but they're from Sideview Utils. np.

0 Karma

therealdpk
Path Finder

Interesting. I guess I do have SideviewUtils installed. Thanks, I'll try using that too.

0 Karma

jonuwz
Influencer

If you're using advanced XML, wrap your chart in a HiddenChartFormatter module and set a parameter

<param name="chartTitle">Name of your chart goes here</param>

If you want a larger title and the chart is in its own group in the page, wherever you have set the layoutPanel="panel_row1_col1" add an attribute like group="Name of your chart goes here"

therealdpk
Path Finder

Thanks. I neglected to look up all the parameters that HiddenChartFormatter takes, ended up focusing on just JSChart and FlashChart.

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

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 ...