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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joyhackett
Helper II
Helper II

Bar Chart Reference Line Data Label Text Size

Hi!  Is there a way to set the size of the reference line labels (without making the bar larger)? It's not listed as an option under Data Label - maybe it's somewhere else?  Or is there any custom visual that would give me more formatting options?

joyhackett_2-1707511801095.png

 

joyhackett_1-1707511742925.png

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @joyhackett 
There are no options to change the size of constant line labels .

There is an idea about this issue please vote for it ( i voted 🙂 )

https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=f245acca-01a2-ed11-9ac4-281878deecac

according to alternatives, it seems that you are trying to create some kind of bullet chart with ranges / linear gauge 
Check those :
https://www.youtube.com/watch?v=2ClAphW9usY&t=486s

https://www.youtube.com/watch?v=EUNKftfxgYA

https://www.youtube.com/watch?v=QcHeq5nJUTc&t=11s

https://www.youtube.com/watch?v=V2BNNe4Ciu8&t=907s

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Anonymous
Not applicable

Hi  @joyhackett ,

Power BI’s built-in bar chart does not directly allow you to adjust the size of reference line labels without affecting the bar size.But you can consider creating or using custom visuals. Custom visuals allow you to tailor your visualizations beyond the standard options.

  • Step 1: Add Formatting Options to a Custom Visual:

    • Start by adding formatting properties to your custom visual.
    • You’ll need to modify the file(capabilities.json) and define the desired formatting options.
  • Step 2: Implement Custom Formatting Logic:

    • In your custom visual code, implement the logic to handle the formatting options.
    • For instance, you can set a minimum and maximum thickness for the circle outline based on user input
  • Step 3: Package and Import:

    • Once your custom visual is ready, package it and import it into Power BI Desktop or Service.
    • Now you’ll have more control over formatting, including reference line label size.

Below is the link will help you:

powerbi-docs/powerbi-docs/developer/visuals/custom-visual-develop-tutorial-format-options.md at live...

Add formatting options to a Power BI custom visual - Power BI | Microsoft Learn

Conditional formatting of Power BI custom visuals - Power BI | Microsoft Learn

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @joyhackett ,

Power BI’s built-in bar chart does not directly allow you to adjust the size of reference line labels without affecting the bar size.But you can consider creating or using custom visuals. Custom visuals allow you to tailor your visualizations beyond the standard options.

  • Step 1: Add Formatting Options to a Custom Visual:

    • Start by adding formatting properties to your custom visual.
    • You’ll need to modify the file(capabilities.json) and define the desired formatting options.
  • Step 2: Implement Custom Formatting Logic:

    • In your custom visual code, implement the logic to handle the formatting options.
    • For instance, you can set a minimum and maximum thickness for the circle outline based on user input
  • Step 3: Package and Import:

    • Once your custom visual is ready, package it and import it into Power BI Desktop or Service.
    • Now you’ll have more control over formatting, including reference line label size.

Below is the link will help you:

powerbi-docs/powerbi-docs/developer/visuals/custom-visual-develop-tutorial-format-options.md at live...

Add formatting options to a Power BI custom visual - Power BI | Microsoft Learn

Conditional formatting of Power BI custom visuals - Power BI | Microsoft Learn

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ritaf1983
Super User
Super User

Hi @joyhackett 
There are no options to change the size of constant line labels .

There is an idea about this issue please vote for it ( i voted 🙂 )

https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=f245acca-01a2-ed11-9ac4-281878deecac

according to alternatives, it seems that you are trying to create some kind of bullet chart with ranges / linear gauge 
Check those :
https://www.youtube.com/watch?v=2ClAphW9usY&t=486s

https://www.youtube.com/watch?v=EUNKftfxgYA

https://www.youtube.com/watch?v=QcHeq5nJUTc&t=11s

https://www.youtube.com/watch?v=V2BNNe4Ciu8&t=907s

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors