<?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: Cannot successfully implement color picker on visual using table mapping in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/465142#M14303</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/65099"&gt;@FR5702&lt;/a&gt;&amp;nbsp;To parse color properly you should specify a selector for each item of finalData.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;this.uniqueColorRetrieve(this.finaldata).forEach(d =&amp;gt; {
                        objectEnumeration.push({
                            objectName: objectName,
                            displayName: d.name,
                            properties : {
                                fill: d.color
                            },
                            selector: d.identity.getSelector(),
                        });
                    });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should also parse color for row by using something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;row.objects[0] // It will contain properties. Please use console.log to figure out its structure.&lt;/PRE&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 07:07:48 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-07-18T07:07:48Z</dc:date>
    <item>
      <title>Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322488#M9512</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;am using the table type dataViewMapping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to store and retrieve colors, however colors don't save successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating my selection Ids using the code from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/issues/77" target="_blank"&gt;#77&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;private static getSelectionIds(dataView: DataView, host: IVisualHost): powerbi.visuals.ISelectionId[] {
            return dataView.table.identity.map((identity: DataViewScopeIdentity) =&amp;gt; {
                const categoryColumn: DataViewCategoryColumn = {
                    source: dataView.table.columns[0],
                    values: null,
                    identity: [identity]
                };
        
                return host.createSelectionIdBuilder()
                    .withCategory(categoryColumn, 0)
                    .createSelectionId();
            });&lt;/PRE&gt;&lt;P&gt;Then I populate the default colors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                this.GANTTEntries = options.dataViews[0].table.rows.map((v, i, a) =&amp;gt; 	
                                    [
                                        v[columnNames['stage']],												//Stage name
                                        a.map(i =&amp;gt; i[columnNames['stage']]).indexOf(v[columnNames['stage']]),	//Stage surrogate index
                                    ])
                        .filter((v, i) =&amp;gt; v[1] === i)														     //Only keep stages groups (based on index)
                        .map((v, i) =&amp;gt;  {
                                            let defaultColor: Fill = {
                                                solid: {
                                                    color: this.host.colorPalette.getColor(options.dataViews[0].table.rows[i][2].toString()).value
                                                }
                                            }
                                            
                                            return {
                                                        id: i,
                                                        content: v[0],
                                                        color: getCategoricalObjectValue&amp;lt;Fill&amp;gt;(options.dataViews[0].categorical.categories[0], i, 'colorSelector', 'fill', defaultColor).solid.color,
                                                        selectionId:    selectionIds[i]
                                                    }
                                        });&lt;/PRE&gt;&lt;P&gt;Finally I implement my enumerate method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;       public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstance[] | VisualObjectInstanceEnumerationObject {

            let objectName = options.objectName;
            let objectEnumeration: VisualObjectInstance[] = [];

            switch (objectName) {

                case 'colorSelector':

                    for (let GANTTElement of this.GANTTEntries) {

                        //debugger;

                        objectEnumeration.push({
                            objectName: objectName,
                            displayName: GANTTElement.content.toString(),
                            properties: {
                                fill: {
                                    solid: {
                                        color: GANTTElement.color
                                    }
                                }
                            },
                            selector: GANTTElement.selectionId.getSelector()
                        });
                    }
                    
                break;
            }

            return(objectEnumeration);
        }&lt;/PRE&gt;&lt;P&gt;Color selections immediately revert to the default. The immediate reason is that there is no stored value (objects), but I am not sure how this all plumbs up and there are no examples that I can find other than the post for #77, which does not seem to work. I can't find the object in the dataview anywhere, and getCategoricalObjectValue returns the default value in all cases (as it can't either). This has taken longer than to implement the rest of the visual. Why is this so difficult?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322488#M9512</guid>
      <dc:creator>aristogeiton</dc:creator>
      <dc:date>2017-12-13T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Custom visual with table; settings not being saved</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322487#M9536</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;am using the table type dataViewMapping.&lt;/P&gt;&lt;P&gt;I'm trying to store and retrieve colors, however colors don't save successfully.&lt;/P&gt;&lt;P&gt;I'm creating my selection Ids using the code from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/issues/77" target="_blank"&gt;#77&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;private static getSelectionIds(dataView: DataView, host: IVisualHost): powerbi.visuals.ISelectionId[] {
            return dataView.table.identity.map((identity: DataViewScopeIdentity) =&amp;gt; {
                const categoryColumn: DataViewCategoryColumn = {
                    source: dataView.table.columns[0],
                    values: null,
                    identity: [identity]
                };
        
                return host.createSelectionIdBuilder()
                    .withCategory(categoryColumn, 0)
                    .createSelectionId();
            });&lt;/PRE&gt;&lt;P&gt;Then I populate the default colors:&lt;/P&gt;&lt;PRE&gt;                this.GANTTEntries = options.dataViews[0].table.rows.map((v, i, a) =&amp;gt; 	
                                    [
                                        v[columnNames['stage']],												//Stage name
                                        a.map(i =&amp;gt; i[columnNames['stage']]).indexOf(v[columnNames['stage']]),	//Stage surrogate index
                                    ])
                        .filter((v, i) =&amp;gt; v[1] === i)														     //Only keep stages groups (based on index)
                        .map((v, i) =&amp;gt;  {
                                            let defaultColor: Fill = {
                                                solid: {
                                                    color: this.host.colorPalette.getColor(options.dataViews[0].table.rows[i][2].toString()).value
                                                }
                                            }
                                            
                                            return {
                                                        id: i,
                                                        content: v[0],
                                                        color: getCategoricalObjectValue&amp;lt;Fill&amp;gt;(options.dataViews[0].categorical.categories[0], i, 'colorSelector', 'fill', defaultColor).solid.color,
                                                        selectionId:    selectionIds[i]
                                                    }
                                        });&lt;/PRE&gt;&lt;P&gt;Finally I implement my enumerate method:&lt;/P&gt;&lt;PRE&gt;       public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstance[] | VisualObjectInstanceEnumerationObject {

            let objectName = options.objectName;
            let objectEnumeration: VisualObjectInstance[] = [];

            switch (objectName) {

                case 'colorSelector':

                    for (let GANTTElement of this.GANTTEntries) {

                        //debugger;

                        objectEnumeration.push({
                            objectName: objectName,
                            displayName: GANTTElement.content.toString(),
                            properties: {
                                fill: {
                                    solid: {
                                        color: GANTTElement.color
                                    }
                                }
                            },
                            selector: GANTTElement.selectionId.getSelector()
                        });
                    }
                    
                break;
            }

            return(objectEnumeration);
        }&lt;/PRE&gt;&lt;P&gt;Color selections immediately revert to the default. Why?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 03:06:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322487#M9536</guid>
      <dc:creator>aristogeiton</dc:creator>
      <dc:date>2017-12-13T03:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322572#M9513</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49527"&gt;@aristogeiton&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is in this code:&lt;/P&gt;&lt;PRE&gt;getCategoricalObjectValue&amp;lt;Fill&amp;gt;(options.dataViews[0].categorical.categories[0], i, 'colorSelector', 'fill', defaultColor).solid.color,&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The color for table mapping is kept in &lt;STRONG&gt;options.dataViews[0].table.rows[&lt;SPAN&gt;rowIndex&lt;/SPAN&gt;].objects[0&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; instead of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;options.dataViews[0].categorical.categories[0].&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;You should modify&amp;nbsp;&lt;STRONG&gt;getCategoricalObjectValue&lt;/STRONG&gt; function to&amp;nbsp;handle&amp;nbsp;&lt;STRONG&gt;options.dataViews[0].table.rows[&lt;SPAN&gt;rowIndex&lt;/SPAN&gt;].objects[0&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;]&amp;nbsp;&lt;/STRONG&gt;properly&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further questions.&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;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:13:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322572#M9513</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-13T07:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom visual with table; settings not being saved</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322584#M9537</link>
      <description>&lt;P&gt;Duplicate of &lt;A href="https://community.powerbi.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322572#M9513" target="_self"&gt;this one&lt;/A&gt;.&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, 13 Dec 2017 07:18:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/322584#M9537</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-13T07:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/323179#M9532</link>
      <description>&lt;P&gt;Thanks for your response Igor. This still doesn't work. Is getSelectionIds() defined correctly? rows[index].objects is undefined in all cases.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 23:52:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/323179#M9532</guid>
      <dc:creator>aristogeiton</dc:creator>
      <dc:date>2017-12-13T23:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/323411#M9540</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;getSelectionIds looks ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;rows[index].objects is undefiend if you haven't changed any settings of formatting panel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you pleas share the whole source code as a zip?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Just want to debug it deeper.&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;</description>
      <pubDate>Thu, 14 Dec 2017 08:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/323411#M9540</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-14T08:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/325622#M9625</link>
      <description>&lt;P&gt;Hi Igant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sent this through last week; I hope you received it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could the problem be that I am running getSelectionIds for each VisualUpdateType = 2? I get a type 2 update whenever I change one of the selections. Is running getSelectionIds() at that time overwriting my selections?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 22:38:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/325622#M9625</guid>
      <dc:creator>aristogeiton</dc:creator>
      <dc:date>2017-12-18T22:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/326206#M9636</link>
      <description>&lt;P&gt;I didn't receive the code. Could you please share tocde by using One Drive?&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>Tue, 19 Dec 2017 15:59:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/326206#M9636</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-19T15:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/326693#M9645</link>
      <description>&lt;P&gt;Please this code snippet below to fix the issues with color picker:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        private static getSelectionIds(
            dataView: DataView,
            host: IVisualHost
        &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; powerbi.visuals.ISelectionId[] {
            const queryName: string = dataView.table.columns[0].queryName;

            return dataView.table.identity.map((identity: DataViewScopeIdentity) =&amp;gt; {
                const categoryColumn: DataViewCategoryColumn = {
                    source: {
                        queryName,
                        displayName: null
                    },
                    values: null,
                    identity: [identity]
                };

                return host.createSelectionIdBuilder()
                    .withCategory(categoryColumn, 0)
                    .withMeasure(queryName)
                    .createSelectionId();
            });
        }&lt;/PRE&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, 20 Dec 2017 09:56:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/326693#M9645</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-12-20T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/327147#M9655</link>
      <description>&lt;P&gt;Excellent! It now works! Thanks very much for this!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 23:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/327147#M9655</guid>
      <dc:creator>aristogeiton</dc:creator>
      <dc:date>2017-12-20T23:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/407946#M12153</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49527"&gt;@aristogeiton&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am having same issue color picker does not save in custom visual stack bar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what I have to do? do you have any example of custom visual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anand&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 10:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/407946#M12153</guid>
      <dc:creator>anandsoftweb</dc:creator>
      <dc:date>2018-05-01T10:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/407962#M12154</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;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49527"&gt;@aristogeiton&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code snipet from my actual visual file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let colorPalette: IColorPalette = hst.colorPalette;
            if (this.ColumnValues.length &amp;gt; 0 ) 
            {
                for(var i=0; i &amp;lt; this.ColumnValues.length; i++) 
                {
                    let defaultColor: Fill = {
                        solid: {
                            color: colorPalette.getColor(this.ColumnValues[i] + '').value
                        }
                    };
                    var objn  = { FieldName: this.ColumnValues[i] };
                    
                    objn["Color"] = Visual.getCategoricalObjectValue&amp;lt;Fill&amp;gt;(this.ColumnValues[i], i, 'colorSelector', 'fill', defaultColor).solid.color,
                    objn["LegendLabel"] = this.ColumnValues[i];
                    objn["selectionId"] = Visual.getSelectionIds(element.dataViews[0],hst)
                    this.stackOriginalFields.push(objn);
                }
            }
			
	*ColumnValues = Two Different Value of Catehory&lt;/PRE&gt;&lt;P&gt;enumerate Instance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstanceEnumeration {
            let objectName = options.objectName;
            let objectEnumeration: VisualObjectInstance[] = [];                
            var c = this.stackOriginalFields;
            
			 switch(objectName) {
			 case 'colorSelector':
                    for (let barDataPoint of c) {
                        
                        objectEnumeration.push({
                            objectName: objectName,
                            displayName: barDataPoint.LegendLabel ,
                            properties: {
                                fill: {
                                    solid: {
                                        Color: barDataPoint.Color
                                    }
                                }
                            },
                            //selector: barDataPoint.LegendLabel
							//selector:barDataPoint.selectionId.getSelector() //Its not working						
                            selector:barDataPoint.selectionId
                        });
                    }
                    break;
			 };        
            
            return objectEnumeration;
	}&lt;/PRE&gt;&lt;P&gt;Get Value&lt;/P&gt;&lt;PRE&gt;			public static getCategoricalObjectValue&amp;lt;T&amp;gt;(category: DataViewCategoryColumn, index: number, objectName: string, propertyName: string, defaultValue: T): T {
            let categoryObjects = category.objects;
            if (categoryObjects) {
                
                let categoryObject: DataViewObject = categoryObjects[index];
                if (categoryObject) {                    
                    let object = categoryObject[objectName];
                    if (object) {
                        console.log("object"+object)
                        let property: T = &amp;lt;T&amp;gt;object[propertyName];
                        if (property !== undefined) {
                            return property;
                        }
                    }
                }
            }
            return defaultValue;
        }

        private static getSelectionIds(
            dataView: DataView,
            host: IVisualHost
        &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; powerbi.visuals.ISelectionId[] {
            const queryName: string = dataView.table.columns[0].queryName;

            return dataView.table.identity.map((identity: DataViewScopeIdentity) =&amp;gt; {
                const categoryColumn: DataViewCategoryColumn = {
                    source: {
                        queryName,
                        displayName: null
                    },
                    values: null,
                    identity: [identity]
                };

                return host.createSelectionIdBuilder()
                    .withCategory(categoryColumn, 0)
                    .withMeasure(queryName)
                    .createSelectionId();
            });
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*In Capabilities.json file&lt;/P&gt;&lt;PRE&gt;dataViewMappings": [
      {
        "table": {
          "rows": {
            "select": [
              { "for": { "in": "Columnvalues" }}
            ]
          }
        }
      }
    ]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 12:17:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/407962#M12154</guid>
      <dc:creator>anandsoftweb</dc:creator>
      <dc:date>2018-05-01T12:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/408824#M12191</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/21121"&gt;@anandsoftweb&lt;/a&gt;&amp;nbsp;Please take a look at &lt;A href="http://community.powerbi.com/t5/Developer/Create-Custom-visuals-Set-bar-color/m-p/408006/highlight/false#M12155" target="_self"&gt;this topic&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&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, 02 May 2018 12:38:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/408824#M12191</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-05-02T12:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/464369#M14276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite in the same situation as&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49527"&gt;@aristogeiton&lt;/a&gt;, I'm using a Table DataViewMapping and I don't know how to retrieve the object when I modify the color in Power BI.&lt;/P&gt;&lt;P&gt;I have already implemented&amp;nbsp;this option in an other custom char with&amp;nbsp;a Categorical DataViewMapping but with the table, it seems different.&lt;/P&gt;&lt;P&gt;I'll try to explain my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Table DataViewMapping&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"dataViewMappings": [
        {
            "table": {
                "rows": {
                    "select": [
                        {"for": {
                            "in": "Details"
                        }},
                        {"for": {
                            "in": "Yaxis"
                        }},
                        {"for": {
                            "in": "Xaxis"
                        }},
                        {"for": {
                            "in": "Dim2"
                        }},
                        {"for": {
                            "in": "Dim1"
                        }}
                    ]}}
        }]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;To get my data from the dataview, i use this code :&lt;/P&gt;&lt;PRE&gt;                        dataView.table.rows.forEach((row: DataViewTableRow) =&amp;gt; {
                            const columns = this.getColumnGroupByRole(dataView.metadata.columns, row);
                            viewModel.DataPoints.push({
                                Details: &amp;lt;string&amp;gt;columns["Details"] ? &amp;lt;string&amp;gt;columns["Details"] : "Null",
                                Yaxis: &amp;lt;string&amp;gt;columns["Yaxis"] ? &amp;lt;string&amp;gt;columns["Yaxis"] : "Null",
                                Xaxis: &amp;lt;string&amp;gt;columns["Xaxis"] ? &amp;lt;string&amp;gt;columns["Xaxis"] : "Null",
                                Dim1: &amp;lt;string&amp;gt;columns["Dim1"] ? &amp;lt;string&amp;gt;columns["Dim1"] : "Null",
                                Dim2: &amp;lt;string&amp;gt;columns["Dim2"] ? &amp;lt;string&amp;gt;columns["Dim2"] : "Null",
                                color: this.host.colorPalette.getColor(&amp;lt;string&amp;gt;columns["Dim1"]).value,
                                identity: this.getSelectionIds(dataView, this.host)
                                });
                            });&lt;/PRE&gt;&lt;P&gt;As you can see, my color is define by the value of my "Dim1" column. So, in my enumerateObjectInstances I wrote this :&lt;/P&gt;&lt;PRE&gt;public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstanceEnumeration {
            let objectName = options.objectName;
            let objectEnumeration: VisualObjectInstance[] = [];

            switch (objectName) {
                case "dataColors":
                this.uniqueColorRetrieve(this.finaldata).forEach(d =&amp;gt; {
                        objectEnumeration.push({
                            objectName: objectName,
                            displayName: d.name,
                            properties : {
                                fill: d.color
                            },
                            selector: null
                        });
                    });
                break;
            }
            return objectEnumeration;
        }&lt;/PRE&gt;&lt;P&gt;With "FinalData", the data I use for my SVGs and "uniqueColorRetrieve", a function returning a list of {name,color} pair without duplicates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the right number of color in my parameters in PBI, but when I pick an other color, it goes back to the default color.&lt;/P&gt;&lt;P&gt;I know that my problem is somewhere between my color definition and my color object but I can't find where....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the situation of&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49527"&gt;@aristogeiton&lt;/a&gt;, but without the full code, I don't&amp;nbsp;fully understand what it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you perhaps know what I do wrong ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/464369#M14276</guid>
      <dc:creator>FR5702</dc:creator>
      <dc:date>2018-07-17T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/465142#M14303</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/65099"&gt;@FR5702&lt;/a&gt;&amp;nbsp;To parse color properly you should specify a selector for each item of finalData.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;this.uniqueColorRetrieve(this.finaldata).forEach(d =&amp;gt; {
                        objectEnumeration.push({
                            objectName: objectName,
                            displayName: d.name,
                            properties : {
                                fill: d.color
                            },
                            selector: d.identity.getSelector(),
                        });
                    });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should also parse color for row by using something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;row.objects[0] // It will contain properties. Please use console.log to figure out its structure.&lt;/PRE&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 07:07:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/465142#M14303</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-07-18T07:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/465710#M14318</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your tips, I have a better understanding of how it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still have a problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To recap, if it's confusing for you,&amp;nbsp;here what I'm doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I take all my datapoints (with their color define by &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;color: this.host.colorPalette.getColor(&amp;lt;string&amp;gt;columns["Dim1"]).value,&lt;/PRE&gt;&lt;P&gt;and identity define by&lt;/P&gt;&lt;PRE&gt;this.getSelectionIds(dataView, this.host)&lt;/PRE&gt;&lt;P&gt;with&lt;/P&gt;&lt;PRE&gt;private  getSelectionIds( dataView: DataView, host: IVisualHost): powerbi.visuals.ISelectionId[] {
            const queryName: string = dataView.table.columns[0].queryName;

            return dataView.table.identity.map((identity: DataViewScopeIdentity) =&amp;gt; {
                const categoryColumn: DataViewCategoryColumn = {
                    source: {
                        queryName,
                        displayName: null
                    },
                    values: null,
                    identity: [identity]
                };

                return host.createSelectionIdBuilder()
                    .withCategory(categoryColumn, 0)
                    .withMeasure(queryName)
                    .createSelectionId();
            });
        }&lt;/PRE&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I group them by my four dimensions = I create X groups&lt;/P&gt;&lt;P&gt;3) I represent them on my chart = 1 point per group&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is this one :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 398px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/107370iA1AFAECDB4D181DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to be able to change the color of my groups depending on 1 Dimension ( Dim1).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 177px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/107371iAB93D53AB0AD835E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As it needs the identity to bound my object with my data, I use the identity from my datapoints.&lt;/P&gt;&lt;P&gt;But how can I use all the identities of the datapoints having the same Dim1 value&amp;nbsp;? Because if I use an identity from my dataPoints, it'll not have any effect as the other dataPoints of his group won't be bound to my object and therefore won't change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to define an identity for each of my groups with :&lt;/P&gt;&lt;PRE&gt;this.host.createSelectionIdBuilder().withMeasure(list[i].Dim1).createSelectionId()&lt;/PRE&gt;&lt;P&gt;but it didn't change anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when I change my Datapoints' identites by these group identities,&amp;nbsp;my chart broke while my data are fine (I checked in my console).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is : How can I change my DataPoints' identities to group identities without breaking my chart ? Or is there an other solution ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, I really need it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 15:45:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/465710#M14318</guid>
      <dc:creator>FR5702</dc:creator>
      <dc:date>2018-07-18T15:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/466282#M14331</link>
      <description>&lt;P&gt;To support such grouping you should start using &lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Capabilities/DataViewMappings.md#categorical-data-mapping" target="_blank"&gt;categorical data mapping&lt;/A&gt; instead of table mapping.&lt;/P&gt;
&lt;P&gt;Categorical mapping supports "group by" option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 07:09:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/466282#M14331</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-07-19T07:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/466391#M14334</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;I get the logic but I don't know how it can be apply to my case as I don't have any value data (all my data are text format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I go from&lt;/P&gt;&lt;PRE&gt;"table": {
                "rows": {
                    "select": [
                        {"for": {
                            "in": "Details"
                        }},
                        {"for": {
                            "in": "Yaxis"
                        }},
                        {"for": {
                            "in": "Xaxis"
                        }},
                        {"for": {
                            "in": "Dim2"
                        }},
                        {"for": {
                            "in": "Dim1"
                        }}
                    ]
                },
                "conditions": [{
                    "Details":{
                        "max": 1
                    },
                    "Yaxis":{
                        "max": 1
                    },
                    "Xaxis":{
                        "max": 1
                    },
                    "Dim1":{
                        "max": 1
                    },
                    "Dim2":{
                        "max": 1
                    }
                }]
            }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;to something similar to &lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Capabilities/DataViewMappings.md#categorical-data-mapping" target="_self"&gt;the examples 2 or 3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 08:15:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/466391#M14334</guid>
      <dc:creator>FR5702</dc:creator>
      <dc:date>2018-07-19T08:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/467392#M14359</link>
      <description>&lt;P&gt;Don't have numbers? If so, there's no way to impelement desired behavior w/o using numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 06:48:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/467392#M14359</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-07-20T06:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot successfully implement color picker on visual using table mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/467438#M14363</link>
      <description>&lt;P&gt;Yes, I transform my data from text to&amp;nbsp;numeric in my code, but what I get from my DataSource are all text data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There no way to have this behaviour without numbers directly in my DataSource ? Or do I have to make all the transformation when I create my ViewModel/DataPoints in order to enable my color picker ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 07:52:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-successfully-implement-color-picker-on-visual-using-table/m-p/467438#M14363</guid>
      <dc:creator>FR5702</dc:creator>
      <dc:date>2018-07-20T07:52:35Z</dc:date>
    </item>
  </channel>
</rss>

