<?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: Adding user parameters to an R powered visualization in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/281730#M8389</link>
    <description>&lt;P&gt;I cant hope to know how this happened but i copied the visual.ts from the one you had to&amp;nbsp;my working visual&amp;nbsp;and now&amp;nbsp;the user parameters show up ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/65256i8A1CFBFE68A12D34/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for some reason when i change the color it gets reverted back to whatever i have set as default, but that's a topic for another thread&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 14:33:48 GMT</pubDate>
    <dc:creator>pope</dc:creator>
    <dc:date>2017-10-18T14:33:48Z</dc:date>
    <item>
      <title>Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/274337#M8257</link>
      <description>&lt;P&gt;I have an R powered visual to which I would like add&amp;nbsp; user parameters to change things like point color and weight for the plot.&lt;BR /&gt;As I have understood it, to do this I have to change the capabilities.json file and visual.ts&lt;/P&gt;&lt;P&gt;This is what i added in the capabilities.json&lt;/P&gt;&lt;PRE&gt;"objects": {
    "rcv_script": {
      "properties": {
        "provider": {
          "type": {
            "text": true
          }
        },
        "source": {
          "type": {
            "scripting": {
              "source": true
            }
          }
        }
      }
    },
	"settings_point_params": {
		"displayName": "Point aesthetics",
		"description": "Color and size",
		"properties":{
			"pointColor":{
				"displayName":"Point color",
				"description":"Point color",
				"type":{
					"fill":{
						"solid":{
							"color": true
						}
					}
				}
			},
			"weight":{
				"displayName":"Weight",
				"description":"Weight",
				"type":{
					"numeric":true
				}
			}
		}
	}
  }&lt;/PRE&gt;&lt;P&gt;And this is what I have in visual.ts&lt;/P&gt;&lt;PRE&gt;module powerbi.extensibility.visual {
    "use strict";
    // below is a snippet of a definition for an object which will contain the property values
    // selected by the users
    /*interface VisualSettings {
        lineColor: string;
    }*/

    // to allow this scenario you should first the following JSON definition to the capabilities.json file
    // under the "objects" property:
    // "settings": {
    //     "displayName": "Visual Settings",
    //     "description": "Visual Settings Tooltip",
    //     "properties": {
    //         "lineColor": {
    //         "displayName": "Line Color",
    //         "type": { "fill": { "solid": { "color": true }}}
    //         }
    //     }
    // }

    // powerbi.extensibility.utils.dataview
    import DataViewObjectsModule = powerbi.extensibility.utils.dataview.DataViewObject;

    // in order to improve the performance, one can update the &amp;lt;head&amp;gt; only in the initial rendering.
    // set to 'true' if you are using different packages to create the widgets
    const updateHTMLHead: boolean = false;
    const renderVisualUpdateType: number[] = [
        VisualUpdateType.Resize,
        VisualUpdateType.ResizeEnd,
        VisualUpdateType.Resize + VisualUpdateType.ResizeEnd
    ];


    //RVIZ_IN_PBI_GUIDE:BEGIN:Added to create HTML-based 
    interface VisualSettingsSplineParams {
        lineColor: string;
        conf1: string;
        conf2: string;
    }

    interface VisualSettingsPointParams {
        pointColor: string;
        weight: number;
    }

    interface VisualSettingsAxesParams {
        colLabel: string;
        textSize: number;
        scaleXformat: string;
        scaleYformat: string;
        sizeTicks: string;
        axisXisPercentage: boolean;
    }
    //RVIZ_IN_PBI_GUIDE:END:Added to create HTML-based 


    export class Visual implements IVisual {
        private rootElement: HTMLElement;
        private headNodes: Node[];
        private bodyNodes: Node[];
        private settings: VisualSettings;

        //RVIZ_IN_PBI_GUIDE:BEGIN:Added to create HTML-based 
        private settings_funnel: VisualSettingsSplineParams;
        private settings_point: VisualSettingsPointParams;
        private settings_axes: VisualSettingsAxesParams;
        //RVIZ_IN_PBI_GUIDE:END:Added to create HTML-based 

        public constructor(options: VisualConstructorOptions) {
            if (options &amp;amp;&amp;amp; options.element) {
                this.rootElement = options.element;
            }
            this.headNodes = [];
            this.bodyNodes = [];

            //RVIZ_IN_PBI_GUIDE:BEGIN:Added to create HTML-based 
            this.settings_funnel = &amp;lt;VisualSettingsSplineParams&amp;gt;{

                lineColor: "blue",
                conf1: "0.95",
                conf2: "0.999"
            };

            this.settings_point = &amp;lt;VisualSettingsPointParams&amp;gt;{
                pointColor: "orange",
                weight: 1
            };

            this.settings_axes = &amp;lt;VisualSettingsAxesParams&amp;gt;{
                colLabel: "gray",
                textSize: 12,
                scaleXformat: "comma",
                scaleYformat: "none",
                sizeTicks: "8",
                axisXisPercentage: true
            };
            //RVIZ_IN_PBI_GUIDE:END:Added to create HTML-based 



        }

        public update(options: VisualUpdateOptions): void {

            if (!options ||
                !options.type ||
                !options.viewport ||
                !options.dataViews ||
                options.dataViews.length === 0 ||
                !options.dataViews[0]) {
                return;
            }
            const dataView: DataView = options.dataViews[0];
            this.settings = Visual.parseSettings(dataView);
            //RVIZ_IN_PBI_GUIDE:BEGIN:Added to create HTML-based 
            this.updateObjects(dataView.metadata.objects);
            //RVIZ_IN_PBI_GUIDE:END:Added to create HTML-based 
            let payloadBase64: string = null;
            if (dataView.scriptResult &amp;amp;&amp;amp; dataView.scriptResult.payloadBase64) {
                payloadBase64 = dataView.scriptResult.payloadBase64;
            }

            if (renderVisualUpdateType.indexOf(options.type) === -1) {
                if (payloadBase64) {
                    this.injectCodeFromPayload(payloadBase64);
                }
            } else {
                this.onResizing(options.viewport);
            }
        }

        public onResizing(finalViewport: IViewport): void {
            /* add code to handle resizing of the view port */
        }

        private injectCodeFromPayload(payloadBase64: string): void {
            // inject HTML from payload, created in R
            // the code is injected to the 'head' and 'body' sections.
            // if the visual was already rendered, the previous DOM elements are cleared

            ResetInjector();

            if (!payloadBase64) {
                return;
            }

            // create 'virtual' HTML, so parsing is easier
            let el: HTMLHtmlElement = document.createElement("html");
            try {
                el.innerHTML = window.atob(payloadBase64);
            } catch (err) {
                return;
            }

            // if 'updateHTMLHead == false', then the code updates the header data only on the 1st rendering
            // this option allows loading and parsing of large and recurring scripts only once.
            if (updateHTMLHead || this.headNodes.length === 0) {
                while (this.headNodes.length &amp;gt; 0) {
                    let tempNode: Node = this.headNodes.pop();
                    document.head.removeChild(tempNode);
                }
                let headList: NodeListOf&amp;lt;HTMLHeadElement&amp;gt; = el.getElementsByTagName("head");
                if (headList &amp;amp;&amp;amp; headList.length &amp;gt; 0) {
                    let head: HTMLHeadElement = headList[0];
                    this.headNodes = ParseElement(head, document.head);
                }
            }

            // update 'body' nodes, under the rootElement
            while (this.bodyNodes.length &amp;gt; 0) {
                let tempNode: Node = this.bodyNodes.pop();
                this.rootElement.removeChild(tempNode);
            }
            let bodyList: NodeListOf&amp;lt;HTMLBodyElement&amp;gt; = el.getElementsByTagName("body");
            if (bodyList &amp;amp;&amp;amp; bodyList.length &amp;gt; 0) {
                let body: HTMLBodyElement = bodyList[0];
                this.bodyNodes = ParseElement(body, this.rootElement);
            }

            RunHTMLWidgetRenderer();
        }

        private static parseSettings(dataView: DataView): VisualSettings {
            return VisualSettings.parse(dataView) as VisualSettings;
        }



        //RVIZ_IN_PBI_GUIDE:BEGIN:Added to create HTML-based 
        /**
         * This function gets called by the update function above. You should read the new values of the properties into 
         * your settings object so you can use the new value in the enumerateObjectInstances function below.
         * 
         * Below is a code snippet demonstrating how to expose a single property called "lineColor" from the object called "settings"
         * This object and property should be first defined in the capabilities.json file in the objects section.
         * In this code we get the property value from the objects (and have a default value in case the property is undefined)
         */
        public updateObjects(objects: DataViewObjects) {

            this.settings_funnel = &amp;lt;VisualSettingsSplineParams&amp;gt;{
                lineColor: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'lineColor', 'blue'),
                conf1: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'conf1', "0.95"),
                conf2: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'conf2', "0.999")
            };

            this.settings_point = &amp;lt;VisualSettingsPointParams&amp;gt;{

                pointColor: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'pointColor', 'orange'),
                weight: DataViewObjectsModule.getValue&amp;lt;number&amp;gt;(objects, 'weight', 1)
            };


            this.settings_axes = &amp;lt;VisualSettingsAxesParams&amp;gt;{


                colLabel: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'colLabel', "gray"),
                textSize: DataViewObjectsModule.getValue&amp;lt;number&amp;gt;(objects, 'textSize', 12),
                scaleXformat: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'scaleXformat', "comma"),
                scaleYformat: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'scaleYformat', "none"),
                sizeTicks: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'sizeTicks', "8"),
                axisXisPercentage: DataViewObjectsModule.getValue&amp;lt;boolean&amp;gt;(objects, 'axisXisPercentage', true)
            };

        }
        //RVIZ_IN_PBI_GUIDE:END:Added to create HTML-based 



        /** 
         * This function gets called for each of the objects defined in the capabilities files and allows you to select which of the 
         * objects and properties you want to expose to the users in the property pane.
         * 
         */
        public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions):
            VisualObjectInstance[] | VisualObjectInstanceEnumerationObject {
            //RVIZ_IN_PBI_GUIDE:BEGIN:Added to create HTML-based 
            let objectName = options.objectName;
            let objectEnumeration = [];

            switch (objectName) {


                case 'settings_point_params':
                    objectEnumeration.push({
                        objectName: objectName,
                        properties: {
                            pointColor: this.settings_point.pointColor,
                            weight: this.settings_point.weight
                        },
                        selector: null
                    });
                    break;

            };


            //RVIZ_IN_PBI_GUIDE:END:Added to create HTML-based 

            return VisualSettings.enumerateObjectInstances(this.settings || VisualSettings.getDefault(), options);
        }
    }
}&lt;/PRE&gt;&lt;P&gt;Supposedly, after doing this and packaging the visual I should see the new user parameters in Power BI desktop but that is not the case .. only the rcv_script shows up.&lt;BR /&gt;Is there something I'm missing?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:14:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/274337#M8257</guid>
      <dc:creator>pope</dc:creator>
      <dc:date>2017-10-10T12:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/275793#M8271</link>
      <description>&lt;P&gt;I think that you should return&amp;nbsp;&lt;STRONG&gt;objectEnumeration&amp;nbsp;&lt;/STRONG&gt;in&amp;nbsp;enumerateObjectInstances method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if that resolves the issue.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&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;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 09:25:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/275793#M8271</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-11T09:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/280480#M8362</link>
      <description>&lt;P&gt;I have changed the return statement in enumerateObjectInstances from&lt;/P&gt;&lt;PRE&gt;return VisualSettings.enumerateObjectInstances(this.settings || VisualSettings.getDefault(), options);&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;return objectEnumeration;&lt;/PRE&gt;&lt;P&gt;as suggested.&lt;/P&gt;&lt;P&gt;Still there is not change. The new user parameters do not show up in power BI&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 13:34:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/280480#M8362</guid>
      <dc:creator>pope</dc:creator>
      <dc:date>2017-10-17T13:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/281434#M8384</link>
      <description>&lt;P&gt;That work well with the &lt;A href="https://1drv.ms/u/s!As9ZTdAyQtTDiQViPXcWhEpA4DSJ" target="_blank"&gt;code &lt;/A&gt;that you have shared.&lt;/P&gt;&lt;P&gt;Could you please double check that this code works well of you as well?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/65200i32B85F34DBD36D89/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&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;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 09:48:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/281434#M8384</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-18T09:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/281705#M8387</link>
      <description>&lt;P&gt;welp ..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/65247i2E2A4D8159A2D336/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:04:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/281705#M8387</guid>
      <dc:creator>pope</dc:creator>
      <dc:date>2017-10-18T14:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/281730#M8389</link>
      <description>&lt;P&gt;I cant hope to know how this happened but i copied the visual.ts from the one you had to&amp;nbsp;my working visual&amp;nbsp;and now&amp;nbsp;the user parameters show up ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/65256i8A1CFBFE68A12D34/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for some reason when i change the color it gets reverted back to whatever i have set as default, but that's a topic for another thread&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:33:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/281730#M8389</guid>
      <dc:creator>pope</dc:creator>
      <dc:date>2017-10-18T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/282473#M8400</link>
      <description>&lt;P&gt;Please let me know if you&amp;nbsp;need any help with color reverting issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&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;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:31:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/282473#M8400</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-19T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/505418#M15558</link>
      <description>&lt;P&gt;Hi Ignat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've implemented the code sample you shared and am also having the same issue of colors reverting to default (only in the selector pane, not on the visual itself). Is there a fix for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 05:33:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/505418#M15558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T05:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user parameters to an R powered visualization</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/505441#M15559</link>
      <description>&lt;P&gt;Just as an update, I have figured out the fix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update the line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            this.settings_point = &amp;lt;VisualSettingsPointParams&amp;gt;{

                pointColor: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'pointColor', 'orange'),
                weight: DataViewObjectsModule.getValue&amp;lt;number&amp;gt;(objects, 'weight', 1)
            };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;            this.settings_point = &amp;lt;VisualSettingsPointParams&amp;gt;{

                pointColor: DataViewObjectsModule.getValue&amp;lt;string&amp;gt;(objects, 'pointColor', this.settings_point.pointColor),
                weight: DataViewObjectsModule.getValue&amp;lt;number&amp;gt;(objects, 'weight', this.settings_point.weight)
            };&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Sep 2018 05:56:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-user-parameters-to-an-R-powered-visualization/m-p/505441#M15559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T05:56:49Z</dc:date>
    </item>
  </channel>
</rss>

