<?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 R powered custom visual: image doesn't scale when I resize the visual in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-powered-custom-visual-image-doesn-t-scale-when-I-resize-the/m-p/2153948#M3993</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an old R custom visual (built with old visual tools) that I need to modify.&lt;/P&gt;&lt;P&gt;I haven't found the migration guide to version 3.0 of power bi visual tools, so I created a new package using the same R script and the same capabilities.json.&lt;/P&gt;&lt;P&gt;The custom visual works but it's unusable because the image doesn't scale down automatically to the visual size, as it did with the old version.&lt;/P&gt;&lt;P&gt;The problem does not depend on the script and the package used (gridExtra): I pasted the same R code in the R visual and the image scales up and down as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea to solve this issue?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pbiviz --version
3.3.2&lt;/LI-CODE&gt;&lt;P&gt;package.json&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "name": "visual",
  "dependencies": {
    "@types/d3": "^5.0.0",
    "core-js": "^3.2.1",
    "d3": "^5.0.0",
    "powerbi-visuals-utils-dataviewutils": "^2.2.1"
  },
  "devDependencies": {
    "powerbi-visuals-api": "^3.8.4",
    "tslint": "^5.18.0",
    "tslint-microsoft-contrib": "^6.2.0",
    "typescript": "3.6.3"
  },
  "scripts": {
    "pbiviz": "pbiviz",
    "start": "pbiviz start",
    "package": "pbiviz package",
    "lint": "tslint -c tslint.json -p tsconfig.json"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 15:36:05 GMT</pubDate>
    <dc:creator>gibe</dc:creator>
    <dc:date>2021-10-25T15:36:05Z</dc:date>
    <item>
      <title>R powered custom visual: image doesn't scale when I resize the visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-powered-custom-visual-image-doesn-t-scale-when-I-resize-the/m-p/2153948#M3993</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an old R custom visual (built with old visual tools) that I need to modify.&lt;/P&gt;&lt;P&gt;I haven't found the migration guide to version 3.0 of power bi visual tools, so I created a new package using the same R script and the same capabilities.json.&lt;/P&gt;&lt;P&gt;The custom visual works but it's unusable because the image doesn't scale down automatically to the visual size, as it did with the old version.&lt;/P&gt;&lt;P&gt;The problem does not depend on the script and the package used (gridExtra): I pasted the same R code in the R visual and the image scales up and down as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea to solve this issue?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pbiviz --version
3.3.2&lt;/LI-CODE&gt;&lt;P&gt;package.json&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "name": "visual",
  "dependencies": {
    "@types/d3": "^5.0.0",
    "core-js": "^3.2.1",
    "d3": "^5.0.0",
    "powerbi-visuals-utils-dataviewutils": "^2.2.1"
  },
  "devDependencies": {
    "powerbi-visuals-api": "^3.8.4",
    "tslint": "^5.18.0",
    "tslint-microsoft-contrib": "^6.2.0",
    "typescript": "3.6.3"
  },
  "scripts": {
    "pbiviz": "pbiviz",
    "start": "pbiviz start",
    "package": "pbiviz package",
    "lint": "tslint -c tslint.json -p tsconfig.json"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 15:36:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-powered-custom-visual-image-doesn-t-scale-when-I-resize-the/m-p/2153948#M3993</guid>
      <dc:creator>gibe</dc:creator>
      <dc:date>2021-10-25T15:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: R powered custom visual: image doesn't scale when I resize the visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-powered-custom-visual-image-doesn-t-scale-when-I-resize-the/m-p/2180377#M4043</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution. It is necessary to add this line to the visual.ts file.&lt;/P&gt;&lt;DIV class="language-typescript highlighter-rouge"&gt;&lt;DIV class="highlight"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;import&lt;/SPAN&gt; &lt;SPAN class="dl"&gt;"&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;./../style/visual.less&lt;/SPAN&gt;&lt;SPAN class="dl"&gt;"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Nov 2021 11:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-powered-custom-visual-image-doesn-t-scale-when-I-resize-the/m-p/2180377#M4043</guid>
      <dc:creator>gibe</dc:creator>
      <dc:date>2021-11-09T11:58:09Z</dc:date>
    </item>
  </channel>
</rss>

