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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

JSON data labels customize series

Hi all,

 

In scope of my project I need to create a JSON theme in order to customize the data labels (font size, color etc.) for a line and column combo chart. Is there a way to do this only for the line and not the columns using JSON theme?

 

Thank you in advance.

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry for that the Power BI cannot change the each label’s theme using JSON file. We can only configure each value theme in Customize Series.

 

JSON 1.jpg

 

JSON 2.jpg

 

But use the JSON file we can change the label’s overall theme. The JSON file like this, and you can refer it.

 

{
   "name":"LineClusteredColumnComboTemplate",
   "visualStyles":{
      "lineClusteredColumnComboChart":{
         "*":{
            "labels":[
               {
                  "show":true,
                  "color":{
                     "solid":{
                        "color":"#EEEEEE"
                     }
                  },
                  "labelDisplayUnits":"0",
                  "labelPrecision":1,
                  "labelOrientation":"vertical",
                  "labelPosition":"OutsideEnd",
                  "fontSize":11,
                  "fontFamily":"Courier New",
                  "enableBackground":true,
                  "backgroundColor":{
                     "solid":{
                        "color":"#0928DD"
                     }
                  },
                  "backgroundTransparency":30
               }
            ],
            "lineStyles":[
               {
                  "shadeArea":true,
                  "strokeWidth":4,
                  "strokeLineJoin":"bevel",
                  "showMarker":true,
                  "markerShape":"triangle",
                  "markerSize":3,
                  "markerColor":{
                     "solid":{
                        "color":"#448822"
                     }
                  }
               }
            ]
         }
      }
   }
}

 

If you have any questions, please kindly ask here and we will try to resolve it.

BTW, the JSON file as attached.    

 

Best regards,

 

Community Support Team _ zhenbw

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

1 REPLY 1
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry for that the Power BI cannot change the each label’s theme using JSON file. We can only configure each value theme in Customize Series.

 

JSON 1.jpg

 

JSON 2.jpg

 

But use the JSON file we can change the label’s overall theme. The JSON file like this, and you can refer it.

 

{
   "name":"LineClusteredColumnComboTemplate",
   "visualStyles":{
      "lineClusteredColumnComboChart":{
         "*":{
            "labels":[
               {
                  "show":true,
                  "color":{
                     "solid":{
                        "color":"#EEEEEE"
                     }
                  },
                  "labelDisplayUnits":"0",
                  "labelPrecision":1,
                  "labelOrientation":"vertical",
                  "labelPosition":"OutsideEnd",
                  "fontSize":11,
                  "fontFamily":"Courier New",
                  "enableBackground":true,
                  "backgroundColor":{
                     "solid":{
                        "color":"#0928DD"
                     }
                  },
                  "backgroundTransparency":30
               }
            ],
            "lineStyles":[
               {
                  "shadeArea":true,
                  "strokeWidth":4,
                  "strokeLineJoin":"bevel",
                  "showMarker":true,
                  "markerShape":"triangle",
                  "markerSize":3,
                  "markerColor":{
                     "solid":{
                        "color":"#448822"
                     }
                  }
               }
            ]
         }
      }
   }
}

 

If you have any questions, please kindly ask here and we will try to resolve it.

BTW, the JSON file as attached.    

 

Best regards,

 

Community Support Team _ zhenbw

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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.