<?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 to decrease the size of a legend text or increase the legend width? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126208#M7435</link>
    <description>&lt;P&gt;Although this is an old thread, I thought I'd add my solution. Often I want labels longer than Splunk default, but not always the full length.&lt;/P&gt;

&lt;P&gt;First, do as jihor suggested above and set the option to "ellipsisNone", that way whatever you present will show in its entirity.&lt;/P&gt;

&lt;P&gt;At/near the end of your search add (if you were using sourcetype as the label and wanted the first 25 characters) use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval sourcetype = if( len( sourcetype ) &amp;gt; 25, substr( sourcetype, 0, 25 ) +"...", sourcetype )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or whatever you want to summarize the label.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2019 00:49:32 GMT</pubDate>
    <dc:creator>templets</dc:creator>
    <dc:date>2019-04-04T00:49:32Z</dc:date>
    <item>
      <title>How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126201#M7428</link>
      <description>&lt;P&gt;Hi folks&lt;/P&gt;

&lt;P&gt;I have the problem that I have to have 3 charts in one row. Furthermore I need to have legend on each of these charts. The description of each line has between 20 and 30 characters. I don't want to truncate the description in the legend. What are the possibilities? &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Decrease the text of each line description in the legend&lt;/LI&gt;
&lt;LI&gt;Increase the width of the legend&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Is this possible and how can I do that? I appreciate any help.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
Christian&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126201#M7428</guid>
      <dc:creator>zugji</dc:creator>
      <dc:date>2014-09-16T08:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126202#M7429</link>
      <description>&lt;P&gt;You can try moving the legend to the bottom of the graph, that might give you more space for longer names.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126202#M7429</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-16T12:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126203#M7430</link>
      <description>&lt;P&gt;Unfortunatly that's even worse. I can see only something like this: -... -... -... -... -... &lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126203#M7430</guid>
      <dc:creator>zugji</dc:creator>
      <dc:date>2014-09-16T12:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126204#M7431</link>
      <description>&lt;P&gt;Then your charts are too narrow... have you considered sticking to only naming each series in the chart and providing a detailed description in an HTML box underneath?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126204#M7431</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-16T12:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126205#M7432</link>
      <description>&lt;P&gt;Do you have an example for such a HTML box? &lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 13:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126205#M7432</guid>
      <dc:creator>zugji</dc:creator>
      <dc:date>2014-09-16T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126206#M7433</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
&amp;lt;row&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;p&amp;gt;explanations for chart 1 go here...&amp;lt;/p&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/panel&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;p&amp;gt;explanations for chart 2 go here...&amp;lt;/p&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/panel&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;p&amp;gt;explanations for chart 3 go here...&amp;lt;/p&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Sep 2014 14:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126206#M7433</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-16T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126207#M7434</link>
      <description>&lt;P&gt;Set &lt;CODE&gt;charting.legend.labelStyle.overflowMode&lt;/CODE&gt; to &lt;CODE&gt;ellipsisNone&lt;/CODE&gt;:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
But be aware that when you edit the Dashboard using Splunk UI (not editing the xml directly), on save this will revert back to &lt;CODE&gt;ellipsisMiddle&lt;/CODE&gt;. This is a bit annoying.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 11:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126207#M7434</guid>
      <dc:creator>jihor</dc:creator>
      <dc:date>2017-02-03T11:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrease the size of a legend text or increase the legend width?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126208#M7435</link>
      <description>&lt;P&gt;Although this is an old thread, I thought I'd add my solution. Often I want labels longer than Splunk default, but not always the full length.&lt;/P&gt;

&lt;P&gt;First, do as jihor suggested above and set the option to "ellipsisNone", that way whatever you present will show in its entirity.&lt;/P&gt;

&lt;P&gt;At/near the end of your search add (if you were using sourcetype as the label and wanted the first 25 characters) use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval sourcetype = if( len( sourcetype ) &amp;gt; 25, substr( sourcetype, 0, 25 ) +"...", sourcetype )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or whatever you want to summarize the label.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 00:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-decrease-the-size-of-a-legend-text-or-increase-the-legend/m-p/126208#M7435</guid>
      <dc:creator>templets</dc:creator>
      <dc:date>2019-04-04T00:49:32Z</dc:date>
    </item>
  </channel>
</rss>

