<?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: chart label in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/chart-label/m-p/300674#M3873</link>
    <description>&lt;P&gt;thanks a lot &lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 06:26:25 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2018-04-03T06:26:25Z</dc:date>
    <item>
      <title>chart label</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/chart-label/m-p/300672#M3871</link>
      <description>&lt;P&gt;HI&lt;BR /&gt;
i want to format my label charts but it dont works&lt;BR /&gt;
do i have to add this code in a specific place??? beetween  tags???hi&lt;BR /&gt;
i put a css file in C:\Program Files\Splunk\etc\apps\Splunk_TA_windows\static&lt;BR /&gt;
 and i added this code in my html file but it doesn t works &lt;BR /&gt;
here is the css file content:&lt;BR /&gt;
text-label{&lt;BR /&gt;
font-size: 20px !important;&lt;BR /&gt;
fill: black !important;&lt;BR /&gt;
 font-weight: bold!important;&lt;BR /&gt;
}&lt;BR /&gt;
what is the problem please???&lt;BR /&gt;
thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/chart-label/m-p/300672#M3871</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-09-29T18:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: chart label</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/chart-label/m-p/300673#M3872</link>
      <description>&lt;P&gt;@jip31, if you are using HTML Dashboard, chart title &lt;CODE&gt;&amp;lt;h3&amp;gt;&lt;/CODE&gt; section can be selected &lt;CODE&gt;.panel-head h3&lt;/CODE&gt; selector. For the following example I have used chart with &lt;CODE&gt;id="myPieChart"&lt;/CODE&gt; to apply CSS Style override only to that Chart. Also I have used a html panel (i.e. &lt;CODE&gt;dashboard-element html&lt;/CODE&gt; in Splunk which is always hidden using &lt;CODE&gt;tokenDependencies with $alwaysHideCSSStyleHTML$ which is never set&lt;/CODE&gt;&lt;/P&gt;

&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/4657iEDCA0B20A6B03440/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;PRE&gt;&lt;CODE&gt;&amp;lt;div id="row1" class="dashboard-row dashboard-row1"&amp;gt;
    &amp;lt;div id="panel1" class="dashboard-cell" style="width: 100%;"&amp;gt;
        &amp;lt;div class="dashboard-panel clearfix"&amp;gt;

            &amp;lt;div class="panel-element-row"&amp;gt;
                &amp;lt;div id="element1" class="dashboard-element html" style="width: 100%"&amp;gt;
                    &amp;lt;div class="panel-body html"&amp;gt;
                            &amp;lt;style&amp;gt;
      #myPieChart .panel-head h3{
        font-size: 20px !important;
        fill: black !important;
        font-weight: bold!important;            
      }
    &amp;lt;/style&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="panel-element-row"&amp;gt;
                &amp;lt;div id="myPieChart" class="dashboard-element chart" style="width: 100%"&amp;gt;
                    &amp;lt;div class="panel-head"&amp;gt;
                        &amp;lt;h3&amp;gt;Splunkd Errors Pie Chart&amp;lt;/h3&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="panel-body"&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Same approach for Simple XML would be to use &lt;CODE&gt;.dashboard-element-title&lt;/CODE&gt; CSS Selector. You can use Browser Inspector Tool to find the DOM element (spath/selector) to override CSS.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html depends="$alwaysHideCSSStyleHTML$"&amp;gt;
        &amp;lt;style&amp;gt;
          #myPieChart .dashboard-element-title{
            font-size: 20px !important;
            fill: black !important;
            font-weight: bold!important;            
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;chart id="myPieChart"&amp;gt;
        &amp;lt;title&amp;gt;Splunkd Errors Pie Chart&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!="INFO" | top 5 component showperc=f&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should get &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples&lt;/A&gt; app from Splunkbase to check out &lt;CODE&gt;Custom Layout Dark Example&lt;/CODE&gt; to understand CSS override.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 17:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/chart-label/m-p/300673#M3872</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-02T17:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: chart label</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/chart-label/m-p/300674#M3873</link>
      <description>&lt;P&gt;thanks a lot &lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 06:26:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/chart-label/m-p/300674#M3873</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-04-03T06:26:25Z</dc:date>
    </item>
  </channel>
</rss>

