<?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 Dashboard Studio : Representing Row in Colors as per the value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/688965#M56425</link>
    <description>&lt;P&gt;Hi Splunk experts,&lt;/P&gt;&lt;P&gt;I have made a dashboard which show my App's service status in Dashboard Studio and I want to display color based on value as show below.&lt;BR /&gt;This was achieved in Dashboard classic by editing the source and appending the format as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sishad_0-1716972488355.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31055iD2CA2FF90472A4F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sishad_0-1716972488355.png" alt="Sishad_0-1716972488355.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;/format&amp;gt;
        &amp;lt;format type="color" field="Requester"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"DOWN"), "#E34234",match(value,"NA"), "#F8BE34",match(value,"UP"),"#4F7942")&amp;lt;/colorPalette&amp;gt;
               &amp;lt;format type="color" field="Stripping"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"DOWN"), "#E34234",match(value,"NA"), "#F8BE34",match(value,"UP"),"#4F7942")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can the same be achieved in Dashboard studio as well ? If so how it can be done.&lt;/P&gt;&lt;P&gt;Can you guys please help me out on this.TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 08:52:34 GMT</pubDate>
    <dc:creator>Sishad</dc:creator>
    <dc:date>2024-05-29T08:52:34Z</dc:date>
    <item>
      <title>Dashboard Studio : Representing Row in Colors as per the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/688965#M56425</link>
      <description>&lt;P&gt;Hi Splunk experts,&lt;/P&gt;&lt;P&gt;I have made a dashboard which show my App's service status in Dashboard Studio and I want to display color based on value as show below.&lt;BR /&gt;This was achieved in Dashboard classic by editing the source and appending the format as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sishad_0-1716972488355.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31055iD2CA2FF90472A4F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sishad_0-1716972488355.png" alt="Sishad_0-1716972488355.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;/format&amp;gt;
        &amp;lt;format type="color" field="Requester"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"DOWN"), "#E34234",match(value,"NA"), "#F8BE34",match(value,"UP"),"#4F7942")&amp;lt;/colorPalette&amp;gt;
               &amp;lt;format type="color" field="Stripping"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"DOWN"), "#E34234",match(value,"NA"), "#F8BE34",match(value,"UP"),"#4F7942")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can the same be achieved in Dashboard studio as well ? If so how it can be done.&lt;/P&gt;&lt;P&gt;Can you guys please help me out on this.TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 08:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/688965#M56425</guid>
      <dc:creator>Sishad</dc:creator>
      <dc:date>2024-05-29T08:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio : Representing Row in Colors as per the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/688974#M56426</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "options": {
        "columnFormat": {
            "Requester": {
                "rowBackgroundColors": "&amp;gt; table | seriesByName(\"Requester\") | matchValue(requesterColumnFormatConfig)"
            }
        }
    },
    "context": {
        "requesterColumnFormatConfig": [
            {
               "match": "DOWN",
               "value": "#FF0000"
           },
           {
               "match": "UP",
               "value": "#00FF00"
           }  
       ]
    }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 May 2024 10:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/688974#M56426</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-29T10:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio : Representing Row in Colors as per the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689102#M56440</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sishad_0-1717079323032.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31080i6578481ECB0A7CDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sishad_0-1717079323032.png" alt="Sishad_0-1717079323032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;No luck as it throws an error saying "&lt;SPAN&gt;must NOT have additional properties" in JSON.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 14:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689102#M56440</guid>
      <dc:creator>Sishad</dc:creator>
      <dc:date>2024-05-30T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio : Representing Row in Colors as per the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689111#M56441</link>
      <description>&lt;P&gt;It looks like you didn't read what I had suggested properly as you have missed the "options" key&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:35:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689111#M56441</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-30T15:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio : Representing Row in Colors as per the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689117#M56442</link>
      <description>&lt;P&gt;Yes I have added it. Please find below the complete source code.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "type": "ds.search",
    "options": {
        "query": "index = index host=hostname source=\"/var/log/history-*.log\" servername | table Websphere GUI  \n| eval Websphere=if(Websphere=\"0\",\"UP\",\"DOWN\")\n| eval GUI=if(GUI=\"0\",\"UP\",\"DOWN\")",
        "queryParameters": {
            "earliest": "-10m@m",
            "latest": "now"
        },
        "refresh": "10m",
        "refreshType": "delay"
    },
    "options": {
        "columnFormat": {
            "Websphere": {
                "rowBackgroundColors": "&amp;gt; table | seriesByName(\"Websphere\") | matchValue(WebsphereColumnFormatConfig)"
            }
        }
    },
    "context": {
        "WebsphereColumnFormatConfig": [
            {
               "match": "DOWN",
               "value": "#FF0000"
           },
           {
               "match": "UP",
               "value": "#00FF00"
           }, 
       ]
    }

    "name": "DC  Web Server _ search"
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 16:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689117#M56442</guid>
      <dc:creator>Sishad</dc:creator>
      <dc:date>2024-05-30T16:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio : Representing Row in Colors as per the value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689120#M56443</link>
      <description>&lt;LI-CODE lang="markup"&gt;{
    "visualizations": {
        "viz_yxqQUaLH": {
            "type": "splunk.table",
            "options": {
                "columnFormat": {
                    "Websphere": {
                        "rowBackgroundColors": "&amp;gt; table | seriesByName(\"Websphere\") | matchValue(nameColumnFormatConfig)"
                    },
                    "GUI": {
                        "rowBackgroundColors": "&amp;gt; table | seriesByName(\"GUI\") | matchValue(nameColumnFormatConfig)"
                    }
                },
                "backgroundColor": "transparent",
                "tableFormat": {
                    "rowBackgroundColors": "&amp;gt; table | seriesByIndex(0) | pick(tableRowBackgroundColorsByBackgroundColor)",
                    "headerBackgroundColor": "&amp;gt; backgroundColor | setColorChannel(tableHeaderBackgroundColorConfig)",
                    "rowColors": "&amp;gt; rowBackgroundColors | maxContrast(tableRowColorMaxContrast)",
                    "headerColor": "&amp;gt; headerBackgroundColor | maxContrast(tableRowColorMaxContrast)"
                }
            },
            "dataSources": {
                "primary": "ds_1ZOKlMox"
            },
            "context": {
                "nameColumnFormatConfig": [
                    {
                        "match": "DOWN",
                        "value": "#FF0000"
                    },
                    {
                        "match": "UP",
                        "value": "#00FF00"
                    }
                ]
            }
        }
    },
    "dataSources": {
        "ds_1ZOKlMox": {
            "type": "ds.search",
            "options": {
                "query": "| makeresults\n| eval Websphere=mvindex(split(\"DOWN,UP\",\",\"),random()%2)\n| eval GUI=mvindex(split(\"DOWN,UP\",\",\"),random()%2)\n| table Websphere GUI",
                "queryParameters": {
                    "earliest": "-24h@h",
                    "latest": "now"
                }
            },
            "name": "Search_2"
        }
    },
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "latest": "$global_time.latest$",
                        "earliest": "$global_time.earliest$"
                    }
                }
            }
        }
    },
    "inputs": {},
    "layout": {
        "type": "absolute",
        "options": {
            "width": 1440,
            "height": 960,
            "display": "auto"
        },
        "structure": [
            {
                "item": "viz_yxqQUaLH",
                "type": "block",
                "position": {
                    "x": 20,
                    "y": 20,
                    "w": 480,
                    "h": 230
                }
            }
        ],
        "globalInputs": []
    },
    "description": "",
    "title": "Webstatus"
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 May 2024 16:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Representing-Row-in-Colors-as-per-the-value/m-p/689120#M56443</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-30T16:40:06Z</dc:date>
    </item>
  </channel>
</rss>

