<?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: Deneb - Only Show Data Labels Above a set value in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Only-Show-Data-Labels-Above-a-set-value/m-p/2847651#M6030</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/421796"&gt;@DW868990&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Assuming you're using Vega-Lite, you can set the &lt;FONT face="courier new,courier"&gt;opacity&lt;/FONT&gt; for your text marks based on a condition, e.g. to show for a field named &lt;STRONG&gt;Sales&lt;/STRONG&gt; with values over &lt;STRONG&gt;1000&lt;/STRONG&gt;, something like this would work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"mark": {
  "type": "text",
  "opacity": {
    "expr": "if(datum['Sales'] &amp;gt;= 1000, 1, 0)"
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This uses an &lt;FONT face="courier new,courier"&gt;&lt;A href="https://vega.github.io/vega-lite/docs/types.html#exprref" target="_self"&gt;ExprRef&lt;/A&gt;&lt;/FONT&gt; to set the &lt;A href="https://vega.github.io/vega-lite/docs/mark.html#:~:text=%22source%2Dover%22-,opacity,-Number%20%7C%20ExprRef" target="_self"&gt;mark's &lt;FONT face="courier new,courier"&gt;opacity&lt;/FONT&gt;&lt;/A&gt; to &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; (fully opaque) if the condition is satisfied.&lt;/P&gt;
&lt;P&gt;If you prefer to only plot marks for the values that satisfy the condition rather than make them invisible, in your text mark's &lt;FONT face="courier new,courier"&gt;layer&lt;/FONT&gt;, you could also add a &lt;FONT face="courier new,courier"&gt;&lt;A href="https://vega.github.io/vega-lite/docs/filter.html" target="_self"&gt;filter&lt;/A&gt;&lt;/FONT&gt; transform that satisfies the condition, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    ...
    {
      "transform": [
        {
          "filter": "datum['Sales'] &amp;gt;= 1000"
        }
      ],
      "mark": {"type": "text"},
      ...
    }
    ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you're using expressions, the value doesn't need to be fixed, and you could use another field or other qualifier as the comparator.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 21:40:12 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2022-10-17T21:40:12Z</dc:date>
    <item>
      <title>Deneb - Only Show Data Labels Above a set value</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Only-Show-Data-Labels-Above-a-set-value/m-p/2841978#M5971</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to show data labels in Deneb for only values above a set value.&lt;/P&gt;&lt;P&gt;I have a visual which for the low values it clutters the x axis with all the data labels, so ideally i would only like to show data labels for larger values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:02:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Only-Show-Data-Labels-Above-a-set-value/m-p/2841978#M5971</guid>
      <dc:creator>DW868990</dc:creator>
      <dc:date>2022-10-14T09:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Deneb - Only Show Data Labels Above a set value</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Only-Show-Data-Labels-Above-a-set-value/m-p/2847651#M6030</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/421796"&gt;@DW868990&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Assuming you're using Vega-Lite, you can set the &lt;FONT face="courier new,courier"&gt;opacity&lt;/FONT&gt; for your text marks based on a condition, e.g. to show for a field named &lt;STRONG&gt;Sales&lt;/STRONG&gt; with values over &lt;STRONG&gt;1000&lt;/STRONG&gt;, something like this would work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"mark": {
  "type": "text",
  "opacity": {
    "expr": "if(datum['Sales'] &amp;gt;= 1000, 1, 0)"
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This uses an &lt;FONT face="courier new,courier"&gt;&lt;A href="https://vega.github.io/vega-lite/docs/types.html#exprref" target="_self"&gt;ExprRef&lt;/A&gt;&lt;/FONT&gt; to set the &lt;A href="https://vega.github.io/vega-lite/docs/mark.html#:~:text=%22source%2Dover%22-,opacity,-Number%20%7C%20ExprRef" target="_self"&gt;mark's &lt;FONT face="courier new,courier"&gt;opacity&lt;/FONT&gt;&lt;/A&gt; to &lt;FONT face="courier new,courier"&gt;1&lt;/FONT&gt; (fully opaque) if the condition is satisfied.&lt;/P&gt;
&lt;P&gt;If you prefer to only plot marks for the values that satisfy the condition rather than make them invisible, in your text mark's &lt;FONT face="courier new,courier"&gt;layer&lt;/FONT&gt;, you could also add a &lt;FONT face="courier new,courier"&gt;&lt;A href="https://vega.github.io/vega-lite/docs/filter.html" target="_self"&gt;filter&lt;/A&gt;&lt;/FONT&gt; transform that satisfies the condition, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    ...
    {
      "transform": [
        {
          "filter": "datum['Sales'] &amp;gt;= 1000"
        }
      ],
      "mark": {"type": "text"},
      ...
    }
    ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you're using expressions, the value doesn't need to be fixed, and you could use another field or other qualifier as the comparator.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 21:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Only-Show-Data-Labels-Above-a-set-value/m-p/2847651#M6030</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-10-17T21:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Deneb - Only Show Data Labels Above a set value</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Only-Show-Data-Labels-Above-a-set-value/m-p/2872216#M6124</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;- I saw this post you have used deneb. Please I need you help in reference dataset and column and measure in JSON for Deneb custom visual. I have posted a question based on this and the link is&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Custom-visual-based-on-seat-allocation/m-p/2871162#M988761" target="_blank"&gt;Custom visual based on seat allocation - Microsoft Power BI Community&lt;/A&gt;. Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 12:07:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Only-Show-Data-Labels-Above-a-set-value/m-p/2872216#M6124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-29T12:07:52Z</dc:date>
    </item>
  </channel>
</rss>

