<?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 do I add color format to HTML dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268945#M17028</link>
    <description>&lt;P&gt;hi &lt;/P&gt;

&lt;P&gt;the format  option still does not work in html.&lt;/P&gt;

&lt;P&gt;i need to use a scale coloration for a dynamic table. but it's impossible for me to define a value.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2018 15:45:16 GMT</pubDate>
    <dc:creator>sfatnass</dc:creator>
    <dc:date>2018-02-21T15:45:16Z</dc:date>
    <item>
      <title>How do I add color format to HTML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268942#M17025</link>
      <description>&lt;P&gt;Hello,  &lt;/P&gt;

&lt;P&gt;I converted a XML dashboard to HTML in Splunk 6.5, and noticed that the color format for my table is missing after the conversion.  The original code in XML is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;table id="table1"&amp;gt;
        &amp;lt;search id="search1"&amp;gt;
        ...
        &amp;lt;/search&amp;gt;
        ...
        &amp;lt;format type="color" field="priority"&amp;gt;
          &amp;lt;colorPalette type="map"&amp;gt;{"info":#5378AD,"low":#98BF3B,"medium":#F0BE1B,"high":#FF8800,"critical":#D25B3B}&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone tell me how to add color formatting to the converted HTML dashboard?  Do I just add it to the table1 TableElement properties?  &lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 17:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268942#M17025</guid>
      <dc:creator>Moonveil</dc:creator>
      <dc:date>2016-12-08T17:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add color format to HTML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268943#M17026</link>
      <description>&lt;P&gt;After converting to HTML seems like options remains empty in HTML, so seems like a bug. &lt;BR /&gt;
&lt;CODE&gt;"format": {"log_level": [{"type": "color", "options": {}}]}&lt;/CODE&gt;,&lt;/P&gt;

&lt;P&gt;The only example I found was for sparkline options for TableElement, and no information available for colorPalette {"INFO":#5378AD,"ERROR":#98BF3B,"WARN":#F0BE1B}. Since, the SplunkJS reference talks only about setting sparkline and not colorPalette through TableView/TableElement, I was unable to find what exact code to be put in options. Splunk should fix this and also update the Web Framework Documentation.&lt;/P&gt;

&lt;P&gt;In your situation, I would suggest use &lt;STRONG&gt;Table Cell Highlighting&lt;/STRONG&gt; example from the &lt;STRONG&gt;Simple XML Examples App&lt;/STRONG&gt; to color the priority field based on values. The example use Simple XML Extensions, to introduce a custom cell render for the Table View using CSS to apply colors for specific cell values. See if that solves the need.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 07:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268943#M17026</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-10T07:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add color format to HTML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268944#M17027</link>
      <description>&lt;P&gt;Editing table formats after converting to HTML is not an officially supported usage.&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 17:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268944#M17027</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-12-15T17:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add color format to HTML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268945#M17028</link>
      <description>&lt;P&gt;hi &lt;/P&gt;

&lt;P&gt;the format  option still does not work in html.&lt;/P&gt;

&lt;P&gt;i need to use a scale coloration for a dynamic table. but it's impossible for me to define a value.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268945#M17028</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2018-02-21T15:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add color format to HTML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268946#M17029</link>
      <description>&lt;P&gt;@here I have a similar issue with adding the HTML code for Splunk dashboard. The code is to set the color to a specific field in a panel with table representation.&lt;BR /&gt;
I have added the below code, which is working fine for the number field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;format type="color" field="COUNT"&amp;gt;
    &amp;lt;colorPalette type="minMidMax" maxColor="#D6563C" minColor="#FFFFFF"&amp;gt;
    &amp;lt;/colorPalette&amp;gt;
    &amp;lt;scale type="minMidMax"&amp;gt;&amp;lt;/scale&amp;gt;
    &amp;lt;/format&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to add the same code for a field which represents the time duration in the format of "HH:MM:SS". The above code is not supporting the time format. &lt;/P&gt;

&lt;P&gt;Could anyone please help me in getting the right code to support the time format fields also.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-color-format-to-HTML-dashboard/m-p/268946#M17029</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2019-08-20T10:56:30Z</dc:date>
    </item>
  </channel>
</rss>

