Dashboards & Visualizations

the formatting of a graph is not holding for the different choices from a dropdown menu.

HattrickNZ
Motivator

I have created a dashboard using forms with input tags creting a dropdown.
In my search I use $token1$ used to control the search

I have one graph that has 2 serieses(i.e. 2 names in the legend)
1 series is a column
with the 2nd series I have selected as chart overlay and i have selected View as Axis

Now this all works but when I go to select a different token from the dropdown e.g. C01K to C02K then the formatting of the graph(e.g. chartoverlays...) is not kept.

Is there anyway I can select different choices from the dropdown and keep the formatting of the graph in question?

Here is a pic of the graph in the correct format( when another option is selected from the dropdown the yellow line effectivly falls to zero as it moves to the primary axis)
Image and video hosting by TinyPic

A snippet of the XML code the drop down part:

<input type="dropdown" token="token1">
<label>NAME:</label>
<choice value="C01K">C01K</choice>
<choice value="C02K">C02K</choice>
<choice value="C03S">C01S</choice>
<default>C01K</default>
</input>

A snippet of the XML code the panel part:

`

<panel>
  <chart>
    <title>last 30days _default _column</title>
    <searchString> ... search string goes here with $token1$ used to control the search ... </searchString>
    <earliestTime/>
    <latestTime/>
    <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
    <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
    <option name="charting.axisTitleX.visibility">visible</option>
    <option name="charting.axisTitleY.visibility">visible</option>
    <option name="charting.axisTitleY2.visibility">visible</option>
    <option name="charting.axisX.scale">linear</option>
    <option name="charting.axisY.scale">linear</option>
    <option name="charting.axisY2.enabled">1</option>
    <option name="charting.axisY2.minimumNumber">0</option>
    <option name="charting.axisY2.scale">inherit</option>
    <option name="charting.chart">column</option>
    <option name="charting.chart.nullValueMode">gaps</option>
    <option name="charting.chart.overlayFields">"maxTput_Mbps_perDay: C01K"</option>
    <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
    <option name="charting.chart.stackMode">default</option>
    <option name="charting.chart.style">shiny</option>
    <option name="charting.drilldown">all</option>
    <option name="charting.layout.splitSeries">0</option>
    <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
    <option name="charting.legend.placement">right</option>
  </chart>
</panel>

`

Tags (2)
0 Karma

stephanefotso
Motivator

Hello!
It is working for me. I think it should be your data. Set C02K as the default value of your dropdown menu, to verify. If when swiching to c01k it's working, notice that the problem is comming from your data. If not, let me know.
Thanks

SGF
0 Karma

HattrickNZ
Motivator

tks, so I changed the default value to another option, then reloaded the page and the formatting does not hold for that graph still. However if I pick from the drop down the initial default value the original formatting is returned.

How do I get it to remember this formatting setting for all the different dropdown options?

what od you mean the problem is coming from my data? Should I be able to get this to work?

0 Karma

HattrickNZ
Motivator

tks, I think I have it

this line:

name="charting.chart.overlayFields">"maxTput_Mbps_perDay: C01K"</option> <option 

should be written as:

name="charting.chart.overlayFields">"maxTput_Mbps_perDay: $token1$" 

This way the formatting will be applied accross all the different choices in the dropdown.

0 Karma
Get Updates on the Splunk Community!

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

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...