<?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: Accessing column header. in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/281228#M372</link>
    <description>&lt;P&gt;Are you developing a custom visual?&lt;/P&gt;&lt;P&gt;If so, you can get column name using &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/c272d2b494b0c072deb773f8fe01346711740fe9/templates/visuals/.api/v1.8.0/PowerBI-visuals.d.ts#L334" target="_blank"&gt;displayName &lt;/A&gt;&lt;SPAN&gt;propertry of the &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/c272d2b494b0c072deb773f8fe01346711740fe9/templates/visuals/.api/v1.8.0/PowerBI-visuals.d.ts#L310" target="_blank"&gt;metadata&lt;/A&gt;.&lt;/SPAN&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, 18 Oct 2017 07:31:59 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2017-10-18T07:31:59Z</dc:date>
    <item>
      <title>Accessing column header.</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/281109#M368</link>
      <description>&lt;P&gt;How can I get the header of a column I have used for creating a visual.I need to display the column name in the Tooltip.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 06:22:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/281109#M368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-18T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing column header.</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/281228#M372</link>
      <description>&lt;P&gt;Are you developing a custom visual?&lt;/P&gt;&lt;P&gt;If so, you can get column name using &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/c272d2b494b0c072deb773f8fe01346711740fe9/templates/visuals/.api/v1.8.0/PowerBI-visuals.d.ts#L334" target="_blank"&gt;displayName &lt;/A&gt;&lt;SPAN&gt;propertry of the &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/c272d2b494b0c072deb773f8fe01346711740fe9/templates/visuals/.api/v1.8.0/PowerBI-visuals.d.ts#L310" target="_blank"&gt;metadata&lt;/A&gt;.&lt;/SPAN&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, 18 Oct 2017 07:31:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/281228#M372</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-18T07:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing column header.</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/281402#M375</link>
      <description>&lt;P&gt;Sorry, didn't get you.&lt;BR /&gt;what should be the assignment for displayName ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt; private static getTooltipData(value: any): VisualTooltipDataItem[] {
            return [{
                displayName:,
                value: value.value.toString(),
                color: value.data.color,
                header:value.data.category
            }];
        }&lt;/PRE&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 09:32:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/281402#M375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-18T09:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing column header.</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/282426#M378</link>
      <description>&lt;P&gt;You should use something like this:&lt;/P&gt;&lt;PRE&gt;options.dataViews[0].categorical.categories[categoryIndex].source.displayName;

// categoryIndex is an index of the category that you want to include to the tooltip&lt;/PRE&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 07:42:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Accessing-column-header/m-p/282426#M378</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-10-19T07:42:46Z</dc:date>
    </item>
  </channel>
</rss>

