Dashboards & Visualizations

How to mark the highest and lowest values on a line graph?

markthompson
Builder

Hello,
I'd like to put an extra point on top of the highest and lowest values on a line graph, has anyone got any suggestions?

Tags (3)
1 Solution

MuS
Legend

Hi markthompson,

take a look at the maxSpotColor and minSpotColor here in the docs http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/PanelreferenceforSimplifiedXML

Hope that helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi markthompson,

take a look at the maxSpotColor and minSpotColor here in the docs http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/PanelreferenceforSimplifiedXML

Hope that helps ...

cheers, MuS

markthompson
Builder

Hi MuS,
Thanks for that, so would it just be chart maxSpotColor = ??

Then is it a hex value, or how should it be displayed?

0 Karma

MuS
Legend

This from the dashboard example app https://apps.splunk.com/app/1603/ where you can see how it is done using a sparkline, but this will work on a chart as well.

<table>
      <title>Basic Sparkline w/ Max Value Indicator</title>
      <searchString>index=_internal | chart count sparkline by sourcetype | sort -count</searchString>
      <earliestTime>-24h@h</earliestTime>
      <latestTime>now</latestTime>
      <option name="wrap">true</option>
      <option name="rowNumbers">true</option>
      <option name="dataOverlayMode">none</option>
      <option name="drilldown">cell</option>
      <option name="count">5</option>

      <!-- Set sparkline options here; make sure that field matches field name of the search results -->      
      <format type="sparkline" field="sparkline">
        <option name="lineColor">#5379af</option>
        <option name="fillColor">#CCDDFF</option>
        <option name="lineWidth">1</option>
        <option name="maxSpotColor">#A2FFA2</option>
        <option name="spotRadius">3</option>
        <option name="height">25px</option>
      </format>
    </table>
0 Karma
Get Updates on the Splunk Community!

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...

Splunk and Fraud

Watch Now!Watch an insightful webinar where we delve into the innovative approaches to solving fraud using the ...