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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How can I change the font of Gauge middle figure?

Can I Bold the middle figure or enlarge it?

 

 CRM.PNG

1 ACCEPTED SOLUTION

@Anonymous you can't do this directly in the gauge, but you can get a better result depending on the values etc. For example, in the below screenshot, I've removed the callout value from the gauge, and use a multi-row card (was able to get a bigger font) and place that under the gauge for the callout. The normal "card" visual would work for this as well, and you can see that you can manipulate the colors. I didn't test the complete interaction, but this description would be the generic work around.

Gauge.JPG


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

5 REPLIES 5

@Anonymous you can't do this directly in the gauge, but you can get a better result depending on the values etc. For example, in the below screenshot, I've removed the callout value from the gauge, and use a multi-row card (was able to get a bigger font) and place that under the gauge for the callout. The normal "card" visual would work for this as well, and you can see that you can manipulate the colors. I didn't test the complete interaction, but this description would be the generic work around.

Gauge.JPG


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG
Anonymous
Not applicable

@Seth_C_Bauer thanks.  and i can enlarge the min and max, but unable to change the font of target (600 in below pic), any solution? CRM.PNG

Hi IvyHai

You can add this sctipt to your Theme in PBI to amend the guage. If you have a free github account  deldersveld has assembled the code needed to customise most standard visuals found here:
GitHub - deldersveld/PowerBI-ThemeTemplates: Snippets for assembling Power BI Themes

For ease this is an example of the guage, the target and min and max numbers can have different fonts and sizes set, in bold


"gauge": {
            "*": {
                "general": [{
                    "responsive"true,
                    "keepLayerOrder"true
                }],
                "background": [{
                    "show"false,
                    "color": { "solid": { "color""#E2E7E9"}},
                    "transparency"20
                }],
                "border": [{
                    "color": { "solid": { "color""#E2E7E9"}},
                    "show"false,
                    "radius"20
                }],
                "title": [{
                    "show"false,
                    "fontColor": { "solid": { "color""#4E152D" } },
                    "alignment""left"
                }],
                "axis": [{
                    "max"100,
                    "target"101
                }],
                "dataPoint": [{
                    "fill": { "solid": { "color""#870E40"}},
                    "target": { "solid": { "color""#DE313B"}}
                }],
                "labels": [{
                    "show"true,
                    "color": { "solid": { "color""#870E40"}},
                    "labelDisplayUnits""0",
                    "labelPrecision"1,
                    "fontSize"11,
                    "fontFamily": "Ariel"
                }], 
                "target": [{
                    "show"true,
                    "color": { "solid": { "color""#FFFFFF"}},
                    "labelDisplayUnits""0",
                    "labelPrecision"1,
                    "fontSize"11,
                    "fontFamily": "Ariel"
                }],
                "calloutValue": [{
                    "show"true,
                    "color": { "solid": { "color""#870E40"}},
                    "labelDisplayUnits""0",
                    "labelPrecision"1
                }]                  
            }

Hi @Anonymous,

 

It is not possible to do it currently. You vote the idea here to make this feature coming sooner.Smiley Happy

 

Regards

@Anonymous Not to my knowledge. That one you are pretty much stuck with what the visual formatting options are since it can dynamically move with the line...


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.