<?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: Change font size in Radial Gauge in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313358#M175408</link>
    <description>&lt;P&gt;@andrey2007 , @hwakonwalk , I have updated the answer with correct CSS selector, which should have been &lt;CODE&gt;text:last-of-type&lt;/CODE&gt; and not &lt;CODE&gt;text:last-child&lt;/CODE&gt;. Please try out and confirm.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Aug 2017 17:20:13 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-08-26T17:20:13Z</dc:date>
    <item>
      <title>Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313351#M175401</link>
      <description>&lt;P&gt;I would like to increase font of scale and current value in Radial Gauge. &lt;BR /&gt;
Is it possible using css?&lt;BR /&gt;
 I expect to get something like that in my gauges.css&lt;/P&gt;

&lt;P&gt;element.style {&lt;BR /&gt;
     }&lt;/P&gt;

&lt;P&gt;text {&lt;BR /&gt;
        font-size: 20px !important;&lt;BR /&gt;
     }&lt;/P&gt;

&lt;P&gt;It changes both font of scale and current value but I would like to do it separately say&lt;BR /&gt;
 font-size: 20px  for scale and  font-size: 30px for current value.&lt;/P&gt;

&lt;P&gt;May be another approach should be used...&lt;/P&gt;

&lt;P&gt;All help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 16:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313351#M175401</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-02-21T16:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313352#M175402</link>
      <description>&lt;P&gt;[Updated Answer]&lt;/P&gt;

&lt;P&gt;CSS selector should have been &lt;CODE&gt;text:last-of-type&lt;/CODE&gt; and not &lt;CODE&gt;text:last-child&lt;/CODE&gt;, since &lt;CODE&gt;text&lt;/CODE&gt; is not always the last child of SVG. I have also converted to hidden HTML panel instead of CSS file for easier testing. Also following requires the chart with id radialChart1 to restrict the CSS override to single radial gauge i.e.&lt;CODE&gt;&amp;lt;chart id="radialChart1"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;html depends="$alwaysHideCSS$"&amp;gt;
    &amp;lt;style&amp;gt;
      #radialChart1 svg text:last-of-type{
         font-size: 30px !important;
         line-height: 30px !important;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;In the DOM all the text for Radial Gauge are present under &lt;CODE&gt;&amp;lt;svg&amp;gt;&lt;/CODE&gt; &lt;CODE&gt;&amp;lt;text&amp;gt;&lt;/CODE&gt; &lt;BR /&gt;
with the last one for Value to be displayed in Radial Gauge.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* SVG Highcharts font-size override to 30px */
svg text:last-child{
    font-size: 30px !important;
    line-height: 30px !important;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Overriding through svg will impact font of &lt;STRONG&gt;last text&lt;/STRONG&gt; in all charts displayed in the Dashboard, so you can exclusively provide your own Panel ID Chart ID in simple XML and use the same in CSS override.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Updated to include line-height also to css.&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/2512i01B5778BA0E1B2FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
Included a screenshot of HTML DOM for CSS Override.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 08:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313352#M175402</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-02-24T08:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313353#M175403</link>
      <description>&lt;P&gt;@andrey2007 were you able to apply the CSS fix for changing Radial Gauge font?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 07:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313353#M175403</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-02-26T07:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313354#M175404</link>
      <description>&lt;P&gt;Hello, niketnilay&lt;/P&gt;

&lt;P&gt;I change in my css following code&lt;BR /&gt;
/&lt;EM&gt;it changes both scale and current number fonts&lt;/EM&gt;/&lt;BR /&gt;
element.style {&lt;BR /&gt;
      }&lt;/P&gt;

&lt;P&gt;text {&lt;BR /&gt;
       font-size: 20px !important;&lt;BR /&gt;
    }&lt;/P&gt;

&lt;P&gt;to &lt;/P&gt;

&lt;P&gt;svg text:last-child{&lt;BR /&gt;
     font-size: 30px !important;&lt;BR /&gt;
 }&lt;/P&gt;

&lt;P&gt;but no changes, gauge is with original font.&lt;BR /&gt;
Using Developer mode in Chrome I picked object and found following for scale font but not "svg text"&lt;/P&gt;

&lt;P&gt;element.style {&lt;BR /&gt;
    color: #555555;&lt;BR /&gt;
    font-size: 11px;&lt;BR /&gt;
    fill: #555555;&lt;BR /&gt;
}&lt;BR /&gt;
text[Attributes Style] {&lt;BR /&gt;
    text-anchor: end;&lt;BR /&gt;
}&lt;BR /&gt;
user agent stylesheet&lt;BR /&gt;
text {&lt;BR /&gt;
    white-space: nowrap;&lt;BR /&gt;
}&lt;BR /&gt;
user agent stylesheet&lt;BR /&gt;
text, foreignObject {&lt;BR /&gt;
    display: block;&lt;BR /&gt;
}&lt;BR /&gt;
user agent stylesheet&lt;BR /&gt;
* {&lt;BR /&gt;
    transform-origin: 0px 0px 0px;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;STRONG&gt;Inherited from svg&lt;/STRONG&gt;&lt;BR /&gt;
Style Attribute {&lt;BR /&gt;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif;&lt;BR /&gt;
    font-size: 12px;&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 13:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313354#M175404</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-02-27T13:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313355#M175405</link>
      <description>&lt;P&gt;@andrey2007, I am working on Splunk 6.5 and can see the node as &lt;STRONG&gt;svg&lt;/STRONG&gt; &lt;STRONG&gt;text&lt;/STRONG&gt;. I have attached a screenshot for the same. I had missed &lt;STRONG&gt;line-height: 30px !important;&lt;/STRONG&gt; override setting in CSS which I have updated in my answer. Please check again and confirm.&lt;/P&gt;

&lt;P&gt;Also which version of Splunk are you using? When you drilldown the CSS can you see the nodes as highlighted in the screenshot I have attached?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 20:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313355#M175405</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-02-27T20:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313356#M175406</link>
      <description>&lt;P&gt;@ niketnilay, I had a same requirement and your answer fits it very well but I saw a strange behavior that when I refresh the dashboard, the css doesn't change anything. If I press edit or F12, the font size changes. So, while debugging, it shows that the CSS over rides the default properties but once I close the F12 console, the size reduce back to original&lt;/P&gt;

&lt;P&gt;Has anyone noticed this behavior? is there any change that I need to make?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 11:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313356#M175406</guid>
      <dc:creator>hwakonwalk</dc:creator>
      <dc:date>2017-03-28T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313357#M175407</link>
      <description>&lt;P&gt;@andrey2007 , @hwakonwalk ... I noticed the same behavior myself. If dashboard edit mode is on then CSS works but not otherwise... Also like you have mentioned CSS override works when the F12 is pressed and the applied CSS is reverted when the dashboard is refreshed. The markings in Radial Gauge adjust as per the CSS override but the Text Size does not increase unless edit mode or browser's inspector is opened.&lt;/P&gt;

&lt;P&gt;So I will go ahead and convert this answer to comment so that someone else in the community may pick up the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 20:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313357#M175407</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-28T20:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change font size in Radial Gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313358#M175408</link>
      <description>&lt;P&gt;@andrey2007 , @hwakonwalk , I have updated the answer with correct CSS selector, which should have been &lt;CODE&gt;text:last-of-type&lt;/CODE&gt; and not &lt;CODE&gt;text:last-child&lt;/CODE&gt;. Please try out and confirm.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 17:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-font-size-in-Radial-Gauge/m-p/313358#M175408</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-26T17:20:13Z</dc:date>
    </item>
  </channel>
</rss>

