<?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 insert image on a rectangle inside the svg in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656208#M1324</link>
    <description>&lt;P&gt;Alternatively, you could look at using CSS to modify the fill pattern used. There are a number of issues with this. Firstly, the pattern must have been visible on your dashboard. Secondly, for column charts for example, the "bars" are defined as a path for each series; this means that the pattern is applied across the whole series, not each bar separately. Thirdly, the image used must be available.&lt;/P&gt;&lt;P&gt;In this example, I have used the app icon&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;svg version="1.1" height="100" width="200"&amp;gt;
          &amp;lt;defs&amp;gt;
            &amp;lt;pattern id="imagefiller" patternUnits="userSpaceOnUse" width="500" height="500"&amp;gt;
              &amp;lt;rect style="fill:blue" width="500" height="500"/&amp;gt;
              &amp;lt;image href="/en-GB/splunkd/__raw/servicesNS/username/application/static/appIcon_2x.png" x="20" y="100" width="30" height="30" /&amp;gt;
            &amp;lt;/pattern&amp;gt;
          &amp;lt;/defs&amp;gt;
          &amp;lt;g&amp;gt;
            &amp;lt;rect style="fill:url(#imagefiller)" width="150" height="90"/&amp;gt;
          &amp;lt;/g&amp;gt;
        &amp;lt;/svg&amp;gt;
        &amp;lt;style&amp;gt;
          #filler g.highcharts-series path.highcharts-graph {
            fill: url(#imagefiller);
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart id="filler"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=5
| eval value=random()%5
| eval series=mvindex(split("ABC",""),random()%3)
| chart sum(value) by series&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;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 31 Aug 2023 08:13:16 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-08-31T08:13:16Z</dc:date>
    <item>
      <title>How to insert image on a rectangle inside the svg</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656129#M1320</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;please could you help me with one question - it is possible to add an png image on a rectangle square?&lt;/P&gt;&lt;P&gt;Just as an example the rectangle is set like this - it is possible to include there an image to the corner of the rectangle?&lt;/P&gt;&lt;PRE&gt;&amp;lt;a href=""&amp;gt; &amp;lt;g&amp;gt;&lt;BR /&gt;  &amp;lt;rect style=fill:color_grey width="150" height="90" x=1200 y=200/&amp;gt;&lt;BR /&gt; &amp;lt;/g&amp;gt;&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help and answers.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656129#M1320</guid>
      <dc:creator>verothor</dc:creator>
      <dc:date>2023-08-30T16:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert image on a rectangle inside the svg</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656133#M1321</link>
      <description>&lt;P&gt;What has this to do with Splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656133#M1321</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-30T16:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert image on a rectangle inside the svg</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656196#M1322</link>
      <description>&lt;P&gt;The SVG is used on a splunk dashboard and inside this I needed to add a picture on a rectangles, so thought someone maybe have some experience with this.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 06:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656196#M1322</guid>
      <dc:creator>verothor</dc:creator>
      <dc:date>2023-08-31T06:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert image on a rectangle inside the svg</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656198#M1323</link>
      <description>&lt;P&gt;So, you want to change the svg generated by the viz / chart? You can do this by creating a custom visualisation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/visualizedata/displaydataview/splunkplatformcustom/" target="_blank"&gt;Custom visualizations API | Documentation | Splunk Developer Program&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 06:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656198#M1323</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-31T06:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert image on a rectangle inside the svg</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656208#M1324</link>
      <description>&lt;P&gt;Alternatively, you could look at using CSS to modify the fill pattern used. There are a number of issues with this. Firstly, the pattern must have been visible on your dashboard. Secondly, for column charts for example, the "bars" are defined as a path for each series; this means that the pattern is applied across the whole series, not each bar separately. Thirdly, the image used must be available.&lt;/P&gt;&lt;P&gt;In this example, I have used the app icon&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;svg version="1.1" height="100" width="200"&amp;gt;
          &amp;lt;defs&amp;gt;
            &amp;lt;pattern id="imagefiller" patternUnits="userSpaceOnUse" width="500" height="500"&amp;gt;
              &amp;lt;rect style="fill:blue" width="500" height="500"/&amp;gt;
              &amp;lt;image href="/en-GB/splunkd/__raw/servicesNS/username/application/static/appIcon_2x.png" x="20" y="100" width="30" height="30" /&amp;gt;
            &amp;lt;/pattern&amp;gt;
          &amp;lt;/defs&amp;gt;
          &amp;lt;g&amp;gt;
            &amp;lt;rect style="fill:url(#imagefiller)" width="150" height="90"/&amp;gt;
          &amp;lt;/g&amp;gt;
        &amp;lt;/svg&amp;gt;
        &amp;lt;style&amp;gt;
          #filler g.highcharts-series path.highcharts-graph {
            fill: url(#imagefiller);
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart id="filler"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=5
| eval value=random()%5
| eval series=mvindex(split("ABC",""),random()%3)
| chart sum(value) by series&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;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Aug 2023 08:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-insert-image-on-a-rectangle-inside-the-svg/m-p/656208#M1324</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-31T08:13:16Z</dc:date>
    </item>
  </channel>
</rss>

