<?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: Are there more examples for visual.ts, capabilities.json and R script for custom R Visuals? in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/191505#M136</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17759"&gt;@jpf5046&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please collect all data and issues that you have and send it to&amp;nbsp;Power BI Custom Visuals Support &amp;lt;pbicvsupport@microsoft.com&amp;gt;?&lt;/P&gt;&lt;P&gt;We'll contact our R-developer in order to assist you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2017 17:53:30 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2017-06-09T17:53:30Z</dc:date>
    <item>
      <title>Are there more examples for visual.ts, capabilities.json and R script for custom R Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/188469#M126</link>
      <description>&lt;P&gt;I'm trying to develop a custom R powered visual. I'm using the few examples on githib from the Microsoft team as a template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I'm using this repo a lot:&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-clustering-kmeans)&amp;nbsp;" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals-clustering-kmeans)&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I am running into is the lack of simplicity&amp;nbsp;making the visuals. The examples on Microsoft's github are very complex. I would like to see a custom R visual with a simple line chart,&amp;nbsp;similar to the bar chart walkthrough on Microsoft's github--but for custom R visuals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand the three key files are visual.ts, capabilities.json, and the r script&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple custom R visual such as a line chart where I can see the visual.ts, capabilities.json, and r script? This would be tremendously helpful. The K means and other examples on Microsoft's github are not helpful because&amp;nbsp;there is a lot of detail in the visual tied to the clustering algorithm, not so much&amp;nbsp;associated with making the visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am native R programmer, I am running into problems at the visual.ts file. Namely finding the interaction bewteen powerbi.extensibility.visual, enumerateObjectInstances, and the R script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is not possible, can Microsoft consider de-encrypting the current R visuals, so we can open up the zip file to see more examples of a working custom R visual?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any direction would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:48:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/188469#M126</guid>
      <dc:creator>jpf5046</dc:creator>
      <dc:date>2017-06-05T21:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Are there more examples for visual.ts, capabilities.json and R script for custom R Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/188848#M127</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17759"&gt;@jpf5046&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might use these templates as an example to develop a custom R-powered visual:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/tree/master/templates/visuals/rvisual" target="_blank"&gt;R visual&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/tree/master/templates/visuals/rhtml" target="_blank"&gt;R HTML visual&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These templates don't contain a lot of code line. They represent the basic structure of the R-powered visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 10:05:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/188848#M127</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-06-06T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Are there more examples for visual.ts, capabilities.json and R script for custom R Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/190598#M135</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;thank you for the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still having trouble finding the interaction between Power BI fields added and the Rscript.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if you could point me in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the plot I was to make with my custom visual:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;p = plot_ly(mtcars, x = ~wt, y = ~hp, z = ~qsec, color = ~am, colors = c('#BF382A', '#0C4B8E')) %&amp;gt;%
  add_markers() %&amp;gt;%
  layout(scene = list(xaxis = list(title = 'wt'),
                     yaxis = list(title = 'hp'),
                     zaxis = list(title = 'qsec')));&lt;/PRE&gt;&lt;P&gt;So to do this I did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In capabilities.json I changed to this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "dataRoles": [
    {
      "displayName": "CAR TYPE",
      "kind": "GroupingOrMeasure",
      "name": "Values"
    },
    {
      "displayName": "wt",
      "kind": "GroupingOrMeasure",
      "name": "Values"
    },
    {
      "displayName": "hp",
      "kind": "GroupingOrMeasure",
      "name": "Values"
    },
    {
      "displayName": "qsec",
      "kind": "GroupingOrMeasure",
      "name": "Values"
    }
  ],
  "dataViewMappings": [
    {
      
      "scriptResult": {
        "dataInput": {
          "table": {
            "rows": {
              "select": [
                {
                  "for": {
                    "in": "Values"
                  }
                }
              ],
              "dataReductionAlgorithm": {
                "top": {}
              }
            }
          }
        },
        "script": {
          "scriptProviderDefault": "R",
          "scriptOutputType": "html",
          "source": {
            "objectName": "rcv_script",
            "propertyName": "source"
          },
          "provider": {
            "objectName": "rcv_script",
            "propertyName": "provider"
          }
        }
      }
    }
  ],
  "objects": {
    "rcv_script": {
      "properties": {
        "provider": {
          "type": {
            "text": true
          }
        },
        "source": {
          "type": {
            "scripting": {
              "source": true
            }
          }
        }
      }
    }
  },
  "suppressDefaultTitle": true
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I'm pretty sure I have to change visual.ts but I am unsure of what to change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just making the changes above creates a bunch of errors in cmd line as you could guess.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What step did I skip?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 14:55:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/190598#M135</guid>
      <dc:creator>jpf5046</dc:creator>
      <dc:date>2017-06-08T14:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Are there more examples for visual.ts, capabilities.json and R script for custom R Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/191505#M136</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17759"&gt;@jpf5046&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please collect all data and issues that you have and send it to&amp;nbsp;Power BI Custom Visuals Support &amp;lt;pbicvsupport@microsoft.com&amp;gt;?&lt;/P&gt;&lt;P&gt;We'll contact our R-developer in order to assist you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 17:53:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/191505#M136</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-06-09T17:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Are there more examples for visual.ts, capabilities.json and R script for custom R Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/220886#M205</link>
      <description>&lt;P&gt;&lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/17759" target="_blank"&gt;@jpf5046&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I'm facing the same problem (binding input data to R script) I'd like to know if you found any solution to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first attemts look somehow similar to what you did but without success on my side as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any answer will be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 08:17:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/220886#M205</guid>
      <dc:creator>Kangaroo</dc:creator>
      <dc:date>2017-07-28T08:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Are there more examples for visual.ts, capabilities.json and R script for custom R Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/221968#M209</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/36094"&gt;@Kangaroo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please send an email to&amp;nbsp;pbicvsupport@microsoft.com with issue's details?&lt;/P&gt;&lt;P&gt;We'll include our R developer to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignat Vilesov&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 08:25:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Are-there-more-examples-for-visual-ts-capabilities-json-and-R/m-p/221968#M209</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-07-31T08:25:37Z</dc:date>
    </item>
  </channel>
</rss>

