It’s a double-edged sword and crucial to get the proper grip. First, you need to realize that the positions of the individual categories in the chart will change. They will change depending on the sequential order.
This is an advantage because I can immediately see which, for example, product is the best and which is the worst. Suppose I keep the same colors for each category. In that case, it’s okay because I won’t confuse the user, and I can use the same bars in other parts of the report for the same categories and thus eliminate unnecessary legends. On the other hand, it can cause the need to define a large number of colors, and thus I have to pay more attention to the colors I choose so that it does not create an unreadable carousel of colors.
If I have more categories in such a graph, it is better to mark only the necessary categories in color. These can be some superior category or the highest / lowest. Just be careful that in a 100% graph, the lowest percentage can easily be only 0.01%; thus, it will not be visible. (Again, it can be good, but it doesn’t have to be. It depends on the context.) At the same time, it is possible to use a gradient in such a case. With the gradient, again, be careful about choosing the colors between which you will make a color shift because you can end up with a circus again or entirely throw off the user’s perception of the context. After all, one category can easily have more colors if the same procedure for defining this color is not applied to other graphs/tables, etc.
DAX Template
The description labels within the template should guide you to the individual variables and elements that you can/should modify. Of course, this is a template, so feel free to customize it to your heart’s content, and it just provides a base. Everything else depends on your needs and ideas.
Power BI Core Visuals supporting this template
Like most other SVGs that we want to dynamically generate, we can use them within three native visuals.
- Matrix
- New Card
- Table
The template is again aimed more at use within the new CARD visual, but with a bit of MACGyver work, it could also be used well in the other options mentioned. However, the maintenance would then be significantly higher.
Set up of new Card visual
- Visual
- Values: Off
- Layout
- Vertical alignment: Middle
- Cards
- Padding: Custom -> 0px (all)
- Image: On
- Image type: Image URL
- Image Url: fx
- Transparency: 0%
- Position: Bottom
- Padding: 0px
- Size: AUTO
- General
- Size
- Width: 530px
- Height: 90px
- Padding: 15px (all)
- Size