All Apps and Add-ons

Adding a chart to advanced xml

_gkollias
SplunkTrust
SplunkTrust

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.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

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