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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
abloor
Helper IV
Helper IV

JSON theme: Data label "Display units". How to set to e.g. Millions

Hi,

 

I'm trying to set my theme file so that the Label Display Units come up as millions.  (Otherwise the labels 'error' as there is too much text to fit in, therefore doesn't show them at all.)

 

Below is the code relating to the chart I want to do it with.  Where below for "labelDisplayUnits" I have 0, I have tried Millions/millions but it doesn't work.  Anything I put in the quotation marks other than 0 changes it to Trillions!

 

Is there a way I can make it show as millions?  Alternatively, my issue would also be fixed if I could turn the 'Overflow text' option to ON.  Is there a way to do this?

 

Thank you

 

 

"ribbonChart":

{"*":{"general":[{"responsive":true}],

"categoryAxis":[{"show":true}],

"valueAxis":[{"show":false}],

"labels":[{"show":true,

"color":{"solid":{"color":"#777777"}},

"fontFamily":"Segoe UI",

"fontSize":9,

"labelDisplayUnits":"0"}]}},

1 ACCEPTED SOLUTION

@abloor ,

 

See code below.

  "labelDisplayUnits":{  
      "expr":{  
         "Literal":{  
            "Value":"1000000D"
         }
      }
   }
Community Support Team _ Sam Zha
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

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@abloor ,

 

Yes, check the reply from jsh121988 in this post.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-chuncz-msft 

Thanks for your reply.  Can you please guide me as to which bit of that post is the solution to my question? Or did you put the wrong link up?  I can't see how that relates to my question?

 

Thanks very much Cat Very Happy

@abloor ,

 

See code below.

  "labelDisplayUnits":{  
      "expr":{  
         "Literal":{  
            "Value":"1000000D"
         }
      }
   }
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft  Thanks very much, that worked!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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