How to provide dynamically changing title to the chart? Am using HiddenChartFormatter module.
The value $counter$ is not dynamically taking the value. its simply displaying as $counter$ directly.
Please let me now if any way is there to solve this. Thanks in advance.
Splunk's HiddenChartFormatter module does not do $foo$ substitution, so you can never use it to implement dynamic charting keys.
The good news is that assuming you have Sideview Utils installed, and your version is newer than 2.6, you can use Sideview's ValueSetter module to completely replace HiddenChartFormatter.
And where HiddenChartFormatter does not do $foo$ substitution (hence your problem), ValueSetter does.
Here is the ValueSetter to replace your HiddenChartFormatter, and it will implement your dynamic chart title. Of course... the solutions also posted using the HTML module to render a simple header are effective too.
<module name="ValueSetter"> <param name="arg.charting.legend.placement">right</param> <param name="arg.charting.chart">line</param> <param name="arg.charting.axisTitleX.text">Time</param> <param name="arg.charting.chartTitle">$counter$</param> <param name="arg.charting.chart.nullValueMode">connect</param>
This error means that you have an old version of Sideview Utils. Or the version you have is older than 2.6 at least. because that's when the arg.* param syntax was added to the ValueSetter module.
Download the latest from http://sideviewapps.com/apps/sideview-utils/
i replaced the hidden chart formatter with the above code and am getting this error.
similar error i get for arg.charting.legend.placement and arg.charting.chart
You can make use of the following HTML module.
<module name="HTML" layoutPanel="panel_row1_col1"> <param name="html"> <![CDATA[ <h3>$counter$</h3>]]> </param> </module>
I hope this helps...!!!
Put the following module outside HiddenChartFormatter, and keep the put the same Layout in this module.
<module name="HTML" layoutPanel="panel_row4_col1">-<param name="html"> <![CDATA[ <h3>KPI Details for $selectedReport$</h3>]]> </param> </module>