Hi,
You can achieve this. First, create a hidden dropdown with dynamic options. Pass your query to calculate the maximum y-axis range from this. Now the dropdown token will have that max value. Then use that token, say max_count, as folows:
<option name="charting.axisY.maximumNumber">$max_count$</option>
So, the code will look like this (intentionally removed other options for better visibility):
<fieldset submitButton="false" autoRun="true">
<input type="dropdown" token="max_count" searchWhenChanged="true" depends="$xyz$"> //any non-existing token for depends
<label>Count</label>
<selectFirstChoice>true</selectFirstChoice>
<populatingSearch earliest="0" latest="" fieldForLabel="Count" fieldForValue="Count">query</populatingSearch>
</input>
</fieldset>
<row>
<panel>
<chart>
<title>Title</title>
<searchString>query</searchString>
<earliestTime>$InputTime.earliest$</earliestTime>
<latestTime>$InputTime.latest$</latestTime>
<option name="charting.axisY.maximumNumber">$max_count$</option>
<option name="charting.chart">column</option>
</chart>
</panel>
</row>
Hope this helps !!!!
PS: Tested on Splunk 6.2+. For versions less than 6.2, hidden dropdown functionality won't work.
... View more