<?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 How to change color of value text in chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208430#M60818</link>
    <description>&lt;P&gt;I have a bar chart created in the which I am showing data values above the bars. However, the tallest bar has the text inside of it, and the colors blend too much. In simple XML, can I change the color of the text to darken it?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 16:11:14 GMT</pubDate>
    <dc:creator>feickertmd</dc:creator>
    <dc:date>2022-11-04T16:11:14Z</dc:date>
    <item>
      <title>How to change color of value text in chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208430#M60818</link>
      <description>&lt;P&gt;I have a bar chart created in the which I am showing data values above the bars. However, the tallest bar has the text inside of it, and the colors blend too much. In simple XML, can I change the color of the text to darken it?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 16:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208430#M60818</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2022-11-04T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208431#M60819</link>
      <description>&lt;P&gt;&lt;STRONG&gt;EDITED&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Since you want to make changes to column data labels which are highchart-data-labels elements not exposed by &lt;STRONG&gt;charting&lt;/STRONG&gt; properties like charting.fontColor you can try one of the following options:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1) Option 1 - charting.backgroundColor&lt;/STRONG&gt;&lt;BR /&gt;
Without CSS make column chart Data Labels prominent by changing chart color to contrast &lt;BR /&gt;
cyan&lt;BR /&gt;
Pros - No need to modify through css.&lt;BR /&gt;
Cons - Panel might look ugly. (White or Black background colors usually suits dashboards)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2) Option 2 - Through CSS&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;(i) Override the highcharts-data-label text color to the color of your choice using following css &lt;STRONG&gt;custom_highcharts.css&lt;/STRONG&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* SVG Highcharts Data Labels color overridden to blue*/
g.highcharts-data-labels text {
    fill: blue !important;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(ii) Place the CSS under your Splunk App folder - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME\etc\apps\&amp;amp;lt;yourAppName&amp;amp;gt;\appserver\static
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: &lt;BR /&gt;
- If you have not put any static files for your Splunk App you would need to create appserver\static folder yourself&lt;BR /&gt;
- If you do not have access to manually place the CSS file to specific Splunk folder, you can load the same through Manage App &lt;STRONG&gt;Edit Properties&lt;/STRONG&gt; using &lt;STRONG&gt;Upload asset&lt;/STRONG&gt; feature. &lt;/P&gt;

&lt;P&gt;(iii) Include the CSS file in your dashboard/form&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form stylesheet="custom_highcharts.css"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(iv) Restart Splunk (splunkd) and clear browser cache for the changes to take place. &lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208431#M60819</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-29T18:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208432#M60820</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2276i57F51A2592428CE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This is the text I want to change. The options you mention only change the colors of the bars.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 20:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208432#M60820</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2016-12-29T20:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208433#M60821</link>
      <description>&lt;P&gt;Can you please try this option and see if it works out for your version of Splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- Set font color (axis labels, legends) --&amp;gt;
        &amp;lt;option name="charting.fontColor"&amp;gt;#FFDDCC&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use the hex code of your choice in it.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 21:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208433#M60821</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-12-29T21:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208434#M60822</link>
      <description>&lt;P&gt;Actually did this well before your comment. Changed axis labels and legend labels, but not values&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 15:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208434#M60822</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2016-12-30T15:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208435#M60823</link>
      <description>&lt;P&gt;Actually did this well before your comment. Changed axis labels and legend labels, but not values&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 15:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208435#M60823</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2016-12-30T15:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208436#M60824</link>
      <description>&lt;P&gt;@feickertmd Can you please check and confirm whether the following solution worked for you or not?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 09:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208436#M60824</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-01-04T09:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208437#M60825</link>
      <description>&lt;P&gt;I am certain that CSS will work, but was looking for other solutions due to admin limitations. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 13:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208437#M60825</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2017-01-04T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208438#M60826</link>
      <description>&lt;P&gt;If CSS is my only viable option, so be it!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 13:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208438#M60826</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2017-01-04T13:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208439#M60827</link>
      <description>&lt;P&gt;no luck for this!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 20:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208439#M60827</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2017-03-20T20:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208440#M60828</link>
      <description>&lt;P&gt;i want to change the value of the data label can any one helm me on this&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 20:02:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208440#M60828</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2017-03-20T20:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208441#M60829</link>
      <description>&lt;P&gt;Thanks this worked for me&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 14:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/208441#M60829</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2018-10-03T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of value text in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/619610#M215345</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could some one please suggest&amp;nbsp; on changing the data label color in bar chart . changing the font color of&amp;nbsp; data label 192.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="supraja_0-1667552581130.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22329i7794F976F9A6E509/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supraja_0-1667552581130.png" alt="supraja_0-1667552581130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 09:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-color-of-value-text-in-chart/m-p/619610#M215345</guid>
      <dc:creator>supraja</dc:creator>
      <dc:date>2022-11-04T09:03:41Z</dc:date>
    </item>
  </channel>
</rss>

