Create Bar Chart with Colour Formatting Based on Legend Visual for Power BI
- Sign up for PBIVizEdit
- Create sample data in CSV
- Visit https://pbivizedit.com/gallery/bar-chart-with-colour-formatting-based-on-legend and click on modify visual.
- If you have already signed up in our tool you will directly go to the Bar Chart with Colour Formatting Based on Legend editor.
Else, you have to first register with our tool and after you log in you will first come across Visual Editors page.
From Visual Editors page, you can go to library, choose the Bar Chart with Colour Formatting Based on Legend visual and import the visual.
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
- 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
- You can check the visual after mapping under Visual tab.
- 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
- Spacing and lot more.
To know more about visual attributes, check Visual Attributes section.
- Once you get your desired custom visual, click on Export visual button to export it.
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.
- After exporting, import the .pbivizfile into the Power BI and use them in your dashboards.