Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AnthonyJoseph
Resolver III
Resolver III

Bar chart with design

Hello Community,

 

Wondering if we can create a chart  (with kind of design as in the picture).  Not sure, if there is a visual that exists any ideas/possiblities are most welcome.

 

 

 

AnthonyJoseph_0-1651477127128.png

Thanks,

Anthony Joseph

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @AnthonyJoseph

Core visuals certainly dont support pattern fills, and there are a few custom ones that do. Visuals that adhere to the OBCS standard (such as ZebraBI have patern shading, but these are typically contextual for how patterns should be used in an IBCS scenario).

If you want a bit more control as the cost of having to do a bit more to set it up, Deneb provides support for a number of popular SVG patterns. Here's a quick mockup:

dmp_0-1651541175958.png

 

I've attached a sample workbook, but here's the Vega-Lite specification I used to produce:

{
  "data": {"name": "dataset"},
  "layer": [
    {
      "mark": {
        "type": "bar",
        "stroke": "black"
      },
      "encoding": {
        "fill": {
          "field": "Series",
          "legend": {
            "title": null,
            "orient": "top",
            "symbolType": "square",
            "symbolStrokeWidth": 1,
            "symbolSize": 200
          },
          "scale": {
            "range": [
              "url(#diagonal-stripe-1)",
              "url(#circles-1)",
              "url(#houndstooth)"
            ]
          }
        }
      }
    },
    {
      "mark": {
        "type": "text",
        "dy": -10
      },
      "encoding": {
        "text": {"field": "Value"}
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "Category",
      "axis": {"labelAngle": 0}
    },
    "xOffset": {"field": "Series"},
    "y": {
      "field": "Value",
      "type": "quantitative"
    }
  }
}

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

1 REPLY 1
dm-p
Super User
Super User

Hi @AnthonyJoseph

Core visuals certainly dont support pattern fills, and there are a few custom ones that do. Visuals that adhere to the OBCS standard (such as ZebraBI have patern shading, but these are typically contextual for how patterns should be used in an IBCS scenario).

If you want a bit more control as the cost of having to do a bit more to set it up, Deneb provides support for a number of popular SVG patterns. Here's a quick mockup:

dmp_0-1651541175958.png

 

I've attached a sample workbook, but here's the Vega-Lite specification I used to produce:

{
  "data": {"name": "dataset"},
  "layer": [
    {
      "mark": {
        "type": "bar",
        "stroke": "black"
      },
      "encoding": {
        "fill": {
          "field": "Series",
          "legend": {
            "title": null,
            "orient": "top",
            "symbolType": "square",
            "symbolStrokeWidth": 1,
            "symbolSize": 200
          },
          "scale": {
            "range": [
              "url(#diagonal-stripe-1)",
              "url(#circles-1)",
              "url(#houndstooth)"
            ]
          }
        }
      }
    },
    {
      "mark": {
        "type": "text",
        "dy": -10
      },
      "encoding": {
        "text": {"field": "Value"}
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "Category",
      "axis": {"labelAngle": 0}
    },
    "xOffset": {"field": "Series"},
    "y": {
      "field": "Value",
      "type": "quantitative"
    }
  }
}

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.