<?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 Accessing highlights array - supportsHighlight capability in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-highlights-array-supportsHighlight-capability/m-p/477896#M14647</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I' developing custom visual and want to support highlights. Here is my capabilities.json code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Row",
            "name": "row",
            "kind": "Grouping"
        },
        {
            "displayName": "Column",
            "name": "column",
            "kind": "Grouping"
        },
        {
            "displayName": "Tile Title",
            "name": "tileTitle",
            "kind": "Grouping"
        },
        {
            "displayName": "Color",
            "name": "color",
            "kind": "Grouping"
        },
        {
            "displayName": "Total Cost",
            "name": "totalCost",
            "kind": "Grouping"
        },
        {
            "displayName": "Total Gap",
            "name": "totalGap",
            "kind": "Grouping"
        },
        {
            "displayName": "Is Header",
            "name": "isHeader",
            "kind": "Grouping"
        },
        {
            "displayName": "AnalysisId",
            "name": "analysisId",
            "kind": "Grouping"
        }
    ],
    "dataViewMappings": [
        {
            "categorical": {
                "categories": {
                    "for": {"in" : "analysisId"}
                },
            "values": {
                        "select": [
                            { "bind": { "to": "totalCost" } },
                            { "bind": { "to": "totalGap" } },
                            { "bind": { "to": "isHeader" } },
                            { "bind": { "to": "color" } },
                            { "bind": { "to": "tileTitle" } },
                            { "bind": { "to": "column" } },
                            { "bind": { "to": "row" } }
                    ]   
                }
            }
        }
    ],
    "supportsHighlight": true,
    "suppressDefaultTitle": true
}&lt;/PRE&gt;&lt;P&gt;Question is how do I access highlights array?&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/e9886c7d77ab261b80bcd45eba97fa56005b8c1c/Capabilities/Highlighting.md" target="_self"&gt;This&lt;/A&gt;&amp;nbsp;is not helping, as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            let highlights = dataView.categorical.categories[0].highlights;&lt;/PRE&gt;&lt;P&gt;throws an error:&lt;/P&gt;&lt;P&gt;"Property 'highlights' does not exist on type 'DataViewCategoryColumn'.". I have no idea how to make PowerBI&amp;nbsp;use&amp;nbsp;&lt;/P&gt;&lt;P&gt;'DataViewValueColumn' type&amp;nbsp; instead of&amp;nbsp;&lt;SPAN&gt;'DataViewCategoryColumn'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone point me in the right direction?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 14:54:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-01T14:54:10Z</dc:date>
    <item>
      <title>Accessing highlights array - supportsHighlight capability</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-highlights-array-supportsHighlight-capability/m-p/477896#M14647</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I' developing custom visual and want to support highlights. Here is my capabilities.json code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "dataRoles": [
        {
            "displayName": "Row",
            "name": "row",
            "kind": "Grouping"
        },
        {
            "displayName": "Column",
            "name": "column",
            "kind": "Grouping"
        },
        {
            "displayName": "Tile Title",
            "name": "tileTitle",
            "kind": "Grouping"
        },
        {
            "displayName": "Color",
            "name": "color",
            "kind": "Grouping"
        },
        {
            "displayName": "Total Cost",
            "name": "totalCost",
            "kind": "Grouping"
        },
        {
            "displayName": "Total Gap",
            "name": "totalGap",
            "kind": "Grouping"
        },
        {
            "displayName": "Is Header",
            "name": "isHeader",
            "kind": "Grouping"
        },
        {
            "displayName": "AnalysisId",
            "name": "analysisId",
            "kind": "Grouping"
        }
    ],
    "dataViewMappings": [
        {
            "categorical": {
                "categories": {
                    "for": {"in" : "analysisId"}
                },
            "values": {
                        "select": [
                            { "bind": { "to": "totalCost" } },
                            { "bind": { "to": "totalGap" } },
                            { "bind": { "to": "isHeader" } },
                            { "bind": { "to": "color" } },
                            { "bind": { "to": "tileTitle" } },
                            { "bind": { "to": "column" } },
                            { "bind": { "to": "row" } }
                    ]   
                }
            }
        }
    ],
    "supportsHighlight": true,
    "suppressDefaultTitle": true
}&lt;/PRE&gt;&lt;P&gt;Question is how do I access highlights array?&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/e9886c7d77ab261b80bcd45eba97fa56005b8c1c/Capabilities/Highlighting.md" target="_self"&gt;This&lt;/A&gt;&amp;nbsp;is not helping, as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            let highlights = dataView.categorical.categories[0].highlights;&lt;/PRE&gt;&lt;P&gt;throws an error:&lt;/P&gt;&lt;P&gt;"Property 'highlights' does not exist on type 'DataViewCategoryColumn'.". I have no idea how to make PowerBI&amp;nbsp;use&amp;nbsp;&lt;/P&gt;&lt;P&gt;'DataViewValueColumn' type&amp;nbsp; instead of&amp;nbsp;&lt;SPAN&gt;'DataViewCategoryColumn'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone point me in the right direction?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 14:54:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-highlights-array-supportsHighlight-capability/m-p/477896#M14647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-01T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing highlights array - supportsHighlight capability</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-highlights-array-supportsHighlight-capability/m-p/478523#M14670</link>
      <description>&lt;P&gt;As shown in the documentation highlights array will be added to values:&amp;nbsp;&lt;STRONG&gt;options.dataViews[0].categorical.values[0].highlights&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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, 02 Aug 2018 06:47:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-highlights-array-supportsHighlight-capability/m-p/478523#M14670</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-02T06:47:57Z</dc:date>
    </item>
  </channel>
</rss>

