All Apps and Add-ons

Adding a chart to advanced xml

_gkollias
Builder

I'd like to add an area graph to an existing timechart I have using advanced xml. The search is exactly the same as the timechart, but when I reload the page the area graph isn't able to display.

I'm adding this piece of xml in -

<module name="PostProcess">
  <param name="search"><![CDATA[ 
    <!--  Search goes here
   --> 
  ]]></param>

  <module name="HiddenChartFormatter">
    <param name="charting.chart">area</param>
    <param name="charting.chart.stackMode">default</param>
    <param name="charting.chart.nullValueMode">zero</param>
    <param name="charting.chart.data.preview">true</param>
    <param name="charting.chartTitle">PO Count</param>
    <param name="charting.legend.placement">bottom</param>
    <param name="charting.axisTitleX.text">test</param>
    <param name="charting.axisTitleY.text">test</param>

    <module name="FlashChart" layoutPanel="panel_row2_col1"/>
  </module>
</module>   

I'm adding this in between the "SimpleResultsTable" module, and the "Redirector"> module (I'm using Sideview Utils for drilldown).

Does this make sence, or am I adding the HiddenChartFormatter in the wrong place?

Your input would be a huge help. Please let me know if you need more info.

Thank You!

1 Solution

sideview
SplunkTrust
SplunkTrust

It sounds like the chart is being added in the wrong place.

If you have the HiddenChartFormatter and the FlashChart nested downstream from the SimpleResultsTable, that means it will not appear or do anything until a row in the table is clicked.

If on the other hand your intention is to have the chart display alongside the table, then the HiddenChartFormatter should be a sibling of the SimpleResultsTable, rather than downstream from it.

If the advanced xml is driving you crazy, the Sideview Editor may make things a bit easier.

Also sometimes there's a lot of legacy modules and cruft in views. Feel free to email a view to me at nick [at] sideviewapps.com and I can spend a couple minutes turning around feedback and quite often a third of the view and a lot of the nesting disappears.

View solution in original post

sideview
SplunkTrust
SplunkTrust

It sounds like the chart is being added in the wrong place.

If you have the HiddenChartFormatter and the FlashChart nested downstream from the SimpleResultsTable, that means it will not appear or do anything until a row in the table is clicked.

If on the other hand your intention is to have the chart display alongside the table, then the HiddenChartFormatter should be a sibling of the SimpleResultsTable, rather than downstream from it.

If the advanced xml is driving you crazy, the Sideview Editor may make things a bit easier.

Also sometimes there's a lot of legacy modules and cruft in views. Feel free to email a view to me at nick [at] sideviewapps.com and I can spend a couple minutes turning around feedback and quite often a third of the view and a lot of the nesting disappears.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...