<?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 setup dynamic resize with SVG in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-dynamic-resize-with-SVG/m-p/457915#M171272</link>
    <description>&lt;P&gt;Could you share a cut down stand-alone example using SPL with &lt;STRONG&gt;| makeresults&lt;/STRONG&gt; so people can try things remotely? Can you replace the SVG image with a simple rectangle and still replicate the issue?&lt;/P&gt;

&lt;P&gt;Also make sure in the SVG text there isn't any width or height sizing set, using viewbox sizing dimension is OK. In the new version of the SVG app images can be made to fill the HTML space without defining a viewbox in parameters, that may help.&lt;/P&gt;

&lt;P&gt;When I build SVG images externally I try to make sure that image starts in the top left corner so I don't need to get into setting Min-X and Min-Y&lt;/P&gt;

&lt;P&gt;Could you tag the question (if possible) with "Scalable Vector Graphics - Custom Visualization" so it's tied to the app that way as well. I originally missed this question.&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 17:02:34 GMT</pubDate>
    <dc:creator>msivill_splunk</dc:creator>
    <dc:date>2019-05-15T17:02:34Z</dc:date>
    <item>
      <title>How to setup dynamic resize with SVG</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-dynamic-resize-with-SVG/m-p/457914#M171271</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I made very good looking (well, to me ...) svg panels.&lt;BR /&gt;
The svg items were created with inkscape.&lt;BR /&gt;
Everything works fine except when adding new panels or viewing the report with a lower resolution screen  : the svg does not resize to fit the new space it has.&lt;/P&gt;

&lt;P&gt;Please find a picture that summarize my issue.&lt;BR /&gt;
On top the two panels with 2 svgs (+ the viewbox params for each) : looks fine !&lt;BR /&gt;
Below, the result after adding 2 more panels : the svgs on the left does not resize and then are truncated.&lt;BR /&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/7054i7AB0047C9429129E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
Your suggestions will be extremely appreciated.&lt;BR /&gt;
I'm now very close to be fully "proficient" in creating svgs reports.   &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
I had to obfuscate some items on the svgs (purple rectangles), sorry for that.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 08:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-dynamic-resize-with-SVG/m-p/457914#M171271</guid>
      <dc:creator>vinzent</dc:creator>
      <dc:date>2019-05-13T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup dynamic resize with SVG</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-dynamic-resize-with-SVG/m-p/457915#M171272</link>
      <description>&lt;P&gt;Could you share a cut down stand-alone example using SPL with &lt;STRONG&gt;| makeresults&lt;/STRONG&gt; so people can try things remotely? Can you replace the SVG image with a simple rectangle and still replicate the issue?&lt;/P&gt;

&lt;P&gt;Also make sure in the SVG text there isn't any width or height sizing set, using viewbox sizing dimension is OK. In the new version of the SVG app images can be made to fill the HTML space without defining a viewbox in parameters, that may help.&lt;/P&gt;

&lt;P&gt;When I build SVG images externally I try to make sure that image starts in the top left corner so I don't need to get into setting Min-X and Min-Y&lt;/P&gt;

&lt;P&gt;Could you tag the question (if possible) with "Scalable Vector Graphics - Custom Visualization" so it's tied to the app that way as well. I originally missed this question.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 17:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-dynamic-resize-with-SVG/m-p/457915#M171272</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2019-05-15T17:02:34Z</dc:date>
    </item>
  </channel>
</rss>

