All Apps and Add-ons

How to control size of text in Trellis layout

stanwin
Contributor

Hi

How do I control the size of the text displayed for the Trellis layout.

I am using the status indicator viz with trellis.

However the text displayed above the split by is too small. Using large size for trellis viz is not an option.

We can control the status_indicator_app viz with

  <option name="status_indicator_app.status_indicator.staticColor">#2625A2</option>

but below does not work

<option name="status_indicator_app.status_indicator.fontSize">24px</option>

Likewise for trellis

   <option name="trellis.splitBy">channel</option>

below does not work

  <option name="trellis.fontSize">channel</option>

No options present in http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/ChartConfigurationReference

alt text

1 Solution

kozanic_FF
Path Finder

Hey stanwin,

I was having the same issue for a while now - but after another day of googling I managed to find a solution.

Try adding this to your dashboard:

  <row depends="$alwaysHideCSSPanel$">
    <panel>
      <html>
        <style>
          .viz-panel.viz-facet-size-large .facet-label{
           font-size:28px !important;
           font-weight: bold !important;
          }
        </style>
      </html>
    </panel>
  </row>

You may need to change "viz-facet-size-large" to suit the size of the Trellis you are using

View solution in original post

kozanic_FF
Path Finder

Hey stanwin,

I was having the same issue for a while now - but after another day of googling I managed to find a solution.

Try adding this to your dashboard:

  <row depends="$alwaysHideCSSPanel$">
    <panel>
      <html>
        <style>
          .viz-panel.viz-facet-size-large .facet-label{
           font-size:28px !important;
           font-weight: bold !important;
          }
        </style>
      </html>
    </panel>
  </row>

You may need to change "viz-facet-size-large" to suit the size of the Trellis you are using

kozanic_FF
Path Finder

Hey stanwin,

Just wondering if this did what you need?

0 Karma

jbullough
Path Finder

This doesn't seem to do anything. Do I need to make other changes to make this work? Does this work in simple XML?

0 Karma

jbullough
Path Finder

Scratch that it works great. I must have had a typo the first time. Thanks!!!!

0 Karma

stanwin
Contributor

Hello Kozanic

Excellent, thanks for the tip ! I was able to play around & using inspect figure out the element to change.

just adding below works also.

 <row>
    <panel>
      <html>
<style>
 .facet-label{
font-size:32px !important;
font-weight: bold !important;
}
</style>
</html>
      <viz type="status_indicator_app.status_indicator">
        <search>
          <query>

for the one you mentioned, yes correct we have to match the size of trellis selected. e.g. for anyone who reads this

viz-facet-size-

<row>
    <panel>
      <html>
<style>
 .viz-panel.viz-facet-size-small .facet-label{
font-size:52px !important;
font-weight: bold !important; 
}
</style>
</html>
      <viz type="status_indicator_app.status_indicator">
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...