<?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 Deneb Stacked Bar Chart Group by Parameter with Pattern Fill in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Stacked-Bar-Chart-Group-by-Parameter-with-Pattern-Fill/m-p/4415407#M12203</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just started out using deneb about a week ago and have the following use case. I want to display planned hours by period and project and group the projects that are smaller than a dynamic parameter value. This is my progress so far:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danteverdi_0-1739867455553.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1240452iD4CA012F70D65347/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danteverdi_0-1739867455553.png" alt="danteverdi_0-1739867455553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I managed to make the grouping by parameter value, but as you can see in the screenshot, there is an issue with the periods '202510' and '202511'.&amp;nbsp; The labels and bar are pushed on the edge of the visual. I noticed that these visual errors occur, if there is no project with values lower than the parameter value, but I don't know how to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how my deneb json code looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "data": {
    "name": "dataset"
  },
  "transform": [
    {
      "calculate": "datum['Planned Hours'] &amp;gt;=  datum['Parameter Value'] ? datum['Project'] + ', ' + format(datum['Planned Hours'], '.0f') : 'Z Merged &amp;lt; ' + datum['Parameter Value'] + ' Hours, ' + format(datum['Others Planned Hours'], '.0f')",
      "as": "Projects"
    },
    {
      "calculate": "datum['Planned Hours'] &amp;gt;=  datum['Parameter Value'] ? datum['Project'] : 'Z Merged &amp;lt;'",
      "as": "ProjectColor"
    }
  ],
  "layer": [
    {
      "mark": {
        "type": "bar",
        "tooltip": true,
        "stroke": "black"
      },
      "encoding": {
        "y": {
          "field": "Planned Hours",
          "type": "quantitative",
          "title": null,
          "stack": true,
          "aggregate": "sum"
        },
        "color": {
          "field": "ProjectColor",
          "legend": null
        }
      }
    },
    {
      "mark": {
        "type": "text"
      },
      "encoding": {
        "text": {
          "field": "Projects"
        },
        "y": {
          "field": "Planned Hours",
          "type": "quantitative",
          "aggregate": "sum",
          "title": null,
          "stack": true,
          "bandPosition": 0.5
        }
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "Period",
      "type": "nominal",
      "title": null,
      "axis": {
        "labelAngle": 0
      }
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another requirement that I have is to differentiate the projects between rough and detailed planning, depending on the Flag "IsDetailedPlanning" in the "factPlanning" table. I want to achieve for the projects with rough planning part to be shown in a dottet pattern. The detailed planning part of the project should have no pattern fill. The color of the bars should be dependent on the project (as it is now). Is this achievable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help in advance! If you need further information don't hesitate to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report with example data:&amp;nbsp;&lt;A href="https://we.tl/t-tj8mLUFi38" target="_blank"&gt;https://we.tl/t-tj8mLUFi38&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 09:26:02 GMT</pubDate>
    <dc:creator>danteverdi</dc:creator>
    <dc:date>2025-02-27T09:26:02Z</dc:date>
    <item>
      <title>Deneb Stacked Bar Chart Group by Parameter with Pattern Fill</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Stacked-Bar-Chart-Group-by-Parameter-with-Pattern-Fill/m-p/4415407#M12203</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just started out using deneb about a week ago and have the following use case. I want to display planned hours by period and project and group the projects that are smaller than a dynamic parameter value. This is my progress so far:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danteverdi_0-1739867455553.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1240452iD4CA012F70D65347/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danteverdi_0-1739867455553.png" alt="danteverdi_0-1739867455553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I managed to make the grouping by parameter value, but as you can see in the screenshot, there is an issue with the periods '202510' and '202511'.&amp;nbsp; The labels and bar are pushed on the edge of the visual. I noticed that these visual errors occur, if there is no project with values lower than the parameter value, but I don't know how to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how my deneb json code looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "data": {
    "name": "dataset"
  },
  "transform": [
    {
      "calculate": "datum['Planned Hours'] &amp;gt;=  datum['Parameter Value'] ? datum['Project'] + ', ' + format(datum['Planned Hours'], '.0f') : 'Z Merged &amp;lt; ' + datum['Parameter Value'] + ' Hours, ' + format(datum['Others Planned Hours'], '.0f')",
      "as": "Projects"
    },
    {
      "calculate": "datum['Planned Hours'] &amp;gt;=  datum['Parameter Value'] ? datum['Project'] : 'Z Merged &amp;lt;'",
      "as": "ProjectColor"
    }
  ],
  "layer": [
    {
      "mark": {
        "type": "bar",
        "tooltip": true,
        "stroke": "black"
      },
      "encoding": {
        "y": {
          "field": "Planned Hours",
          "type": "quantitative",
          "title": null,
          "stack": true,
          "aggregate": "sum"
        },
        "color": {
          "field": "ProjectColor",
          "legend": null
        }
      }
    },
    {
      "mark": {
        "type": "text"
      },
      "encoding": {
        "text": {
          "field": "Projects"
        },
        "y": {
          "field": "Planned Hours",
          "type": "quantitative",
          "aggregate": "sum",
          "title": null,
          "stack": true,
          "bandPosition": 0.5
        }
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "Period",
      "type": "nominal",
      "title": null,
      "axis": {
        "labelAngle": 0
      }
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another requirement that I have is to differentiate the projects between rough and detailed planning, depending on the Flag "IsDetailedPlanning" in the "factPlanning" table. I want to achieve for the projects with rough planning part to be shown in a dottet pattern. The detailed planning part of the project should have no pattern fill. The color of the bars should be dependent on the project (as it is now). Is this achievable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help in advance! If you need further information don't hesitate to ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report with example data:&amp;nbsp;&lt;A href="https://we.tl/t-tj8mLUFi38" target="_blank"&gt;https://we.tl/t-tj8mLUFi38&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 09:26:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Stacked-Bar-Chart-Group-by-Parameter-with-Pattern-Fill/m-p/4415407#M12203</guid>
      <dc:creator>danteverdi</dc:creator>
      <dc:date>2025-02-27T09:26:02Z</dc:date>
    </item>
  </channel>
</rss>

