Lets say I have two different panels in a Dashboard.
One with search like this:
sourcetype=UPS | timechart avg(battery_volt) AS "Volt"
and the other like this:
sourcetype=UPS| timechart avg(battery_temperature) AS "Temperature"
Since they have different legend with different lengt in right side of the panel (Volt/Temperature), they take up different space of the overall window.
This makes the x-axis og the two graphs not align.
Is there a way to set a fixed size of the legend? I do like them to be on the right side.
I could have used on panel if numbers was close to each other, but they are not:
sourcetype=UPS| timechart avg(battery_volt) AS "Volt" avg(battery_temperature) AS "Temperature"
I would combine the two searches, like you said, but then try one of two things:
Details on chart overlay here: http://docs.splunk.com/Documentation/Splunk/6.1.8/Viz/Chartcontrols#Chart_overlay
With regards to 1, you can set the chart's height in SimpleXML. That should make it so that the graph is the correct size on the initial page load: <option name="height">750</option>
https://answers.splunk.com/answers/40810/increase-the-size-of-a-chart.html
Change your second search to
sourcetype=UPS| timechart avg(battery_temperature) AS "Temp"
I know it's cheating, but if it works...?
That would work, but I like to set a fixed with, not depending of changing the legend name :9
Well, shucks. 🙂 This answer might be useful enough to SOMEONE that we should leave it here, but be sure to NOT mark it as the answer, please!