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
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
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.