Create Bar Chart with Colour Formatting Based on Legend Visual for Power BI

Create Bar Chart with Colour Formatting Based on Legend Visual for Power BI


Prerequisite:

  • Sign up for PBIVizEdit
  • Create sample data in CSV

Steps:

  1. Visit https://pbivizedit.com/gallery/bar-chart-with-colour-formatting-based-on-legend and click on modify visual.

Bar Chart with Colour Formatting Based on Legend

  1. If you have already signed up in our tool you will directly go to the Bar Chart with Colour Formatting Based on Legend editor.

Bar Chart with Colour Formatting Based on Legend
Else, you have to first register with our tool and after you log in you will first come across Visual Editors page.

Bar Chart with Colour Formatting Based on Legend
From Visual Editors page, you can go to library, choose the Bar Chart with Colour Formatting Based on Legend visual and import the visual.

Bar Chart with Colour Formatting Based on Legend Once you click on import, you will be directed to the Bar Chart with Colour Formatting Based on Legend editor.

3. Upload your sample data (.csv files only) under Data tab using Upload csv button. For more details go to How to import data

Bar Chart with Colour Formatting Based on Legend

  1. Map your dimensions to axes available under Data Attributes.

e.g. – Based on the data taken in the sample
  • Series 0 (Bar): X Axis = country, Y Axis = 2020-2021, Legend = 2020-2021
    For more details go to Data Attributes

Bar Chart with Colour Formatting Based on Legend

  1. You can check the visual after mapping under Visual tab.

Bar Chart with Colour Formatting Based on Legend

  1. If you want to make changes in the visual attributes, you can make them under Visual Attributes section.
    Few attributes that can be changed for Bars are:
    • Bar colors(here, color formatting based on legends)
    • Bar width
    • Bar transparency
    • Legends
    • Tooltip
    • Spacing and lot more.

Bar Chart with Colour Formatting Based on Legend

To know more about visual attributes, check Visual Attributes section.

  1. Once you get your desired custom visual, click on Export visual button to export it.

Bar Chart with Colour Formatting Based on Legend
Update the visual properties and choose the properties you want Power BI formatting panel to display under Format tab. Once you have set the visual properties, fields and format, click on Export Visual button.
To know more about the visual properties, fields and format, check Export Visuals section.


Note - Free visuals will expire after 3 months from the day of export. If you want to use the visual for a longer period, we would suggest you to buy the visual.


  1. After exporting, import the .pbivizfile into the Power BI and use them in your dashboards.

Bar Chart with Colour Formatting Based on Legend

Bar Chart with Colour Formatting Based on Legend