<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to achieve color with negative values and positive values in dashboard studio? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/628214#M51506</link>
    <description>&lt;P&gt;Yeah, unfortunately without getting into scripting it doesn't look like you can dynamically change the colors via configuration.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 22:50:50 GMT</pubDate>
    <dc:creator>fredclown</dc:creator>
    <dc:date>2023-01-24T22:50:50Z</dc:date>
    <item>
      <title>How to achieve color with negative values and positive values in dashboard studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/627771#M51453</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question with dashboard studio, in JSON format.&lt;/P&gt;&lt;P&gt;I made this dashboard and I want a specific color for the "&lt;STRONG&gt;diff&lt;/STRONG&gt;" field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When &lt;STRONG&gt;diff&lt;/STRONG&gt; is &amp;lt;0 : red color&lt;/P&gt;&lt;P&gt;when &lt;STRONG&gt;diff&lt;/STRONG&gt; is &amp;gt; 0 : green color&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anissabnk_0-1674227093677.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23470i069557C51E33415A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anissabnk_0-1674227093677.png" alt="anissabnk_0-1674227093677.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My spl request is :&lt;/P&gt;&lt;P&gt;`easyVista` source="incidents_jour"&lt;BR /&gt;| dedup "N° d'Incident"&lt;BR /&gt;|rename "Statut de l'incident" as statut&lt;BR /&gt;|eval STATUT=case( match(statut,"Résolu"),"fermé",&lt;BR /&gt;match(statut,"Clôturé"),"fermé",&lt;BR /&gt;match(statut,"Annulé"),"fermé",&lt;BR /&gt;match(statut,"Archivé"),"fermé",&lt;BR /&gt;match(statut,"A prendre en compte"),"ouvert",&lt;BR /&gt;match(statut,"Suspendu"),"ouvert",&lt;BR /&gt;match(statut,"En cours"),"ouvert",&lt;BR /&gt;match(statut,"Escaladé"),"ouvert")&lt;BR /&gt;|timechart count by STATUT usenull=f | eval diff=fermé-ouvert&lt;/P&gt;&lt;P&gt;Can you help me please ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/627771#M51453</guid>
      <dc:creator>anissabnk</dc:creator>
      <dc:date>2023-01-24T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve color with negative values and positive values in dashboard studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/627811#M51463</link>
      <description>&lt;P&gt;Unfortunately, I don't see anything in the definition for column charts that allows you to dynamically change the color. You can set static colors in the source editor with this syntax ...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"my_chart": {
	"type": "splunk.column",
	"dataSources": {
		"primary": "my_ds"
	},
	"options": {
		"seriesColorsByField": {
			"diff": "#FF0000",
			"fermé": "#00FF00",
			"ouvert": "#0000FF"
		}
	}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Jan 2023 18:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/627811#M51463</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2023-01-20T18:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve color with negative values and positive values in dashboard studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/627962#M51484</link>
      <description>&lt;P&gt;Yes, that is the probleme. I want that the value change dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't find something to do this.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 10:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/627962#M51484</guid>
      <dc:creator>anissabnk</dc:creator>
      <dc:date>2023-01-23T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve color with negative values and positive values in dashboard studio?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/628214#M51506</link>
      <description>&lt;P&gt;Yeah, unfortunately without getting into scripting it doesn't look like you can dynamically change the colors via configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 22:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-achieve-color-with-negative-values-and-positive-values-in/m-p/628214#M51506</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2023-01-24T22:50:50Z</dc:date>
    </item>
  </channel>
</rss>

