Dashboards & Visualizations

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


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">
<choice value="C01K">C01K</choice>
<choice value="C02K">C02K</choice>
<choice value="C03S">C01S</choice>

A snippet of the XML code the panel part:


    <title>last 30days _default _column</title>
    <searchString> ... search string goes here with $token1$ used to control the search ... </searchString>
    <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>


Tags (2)
0 Karma


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.

0 Karma


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


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
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!


Or Learn More in Our Blog >>