Forum Discussion
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?
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=486shttps://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.
- Anonymous2 years ago
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:
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.
-
2 Replies
- Ritaf1983Super 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=486shttps://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.
- AnonymousNot 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:
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.
-