cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

json custom theme - multiple series customization

Hello,

 

I've been tinkering with .json file to create my own custom theme, however I am stuck on multiple choice setting. Example:

 

Area chart -> Format -> Data labels - > here I can customize the general setting for data labels, but what I would like to set, is the "CUSTOMIZE SERIES" for each of the series. That is, I would like to have black text label color for the first serie, yellow for the second etc.

 

Image:

 

55555.png

 

.json code for these data labels:

 

 

 

"labels": [{
					"show": true,
					"color": {
						"solid": {
							"color": "#333333"
						}
					},
					"labelPosition": "Under",
					"fontSize": 14,
					"fontFamily": "Arial",
					"labelDensity": 30,
					"showAll": true,
           			        "enableBackground": true,
					"backgroundTransparency": 70	

 

 

 

What it is currently doing is, that it takes the color for ALL LABELS (#333333) and applies it for each of the series. What I want to achieve is, I want to have color 1 for serie 1, color 2 for serie 2 etc.

 

Thanks!

5 REPLIES 5
Highlighted
Helper I
Helper I

Re: json custom theme - multiple series customization

maybe a solution - 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#setting-structural-co...

 

"firstLevelElements": "#252423"

 

I need exactly this, but I cannot put multiple colors there, .json gets corrupted when i try to reformat it like this:

 

"firstLevelElements": ["#252423", "#232233", "#535353"]

 

Seems like there can be only one color for first level elements. Any ideas? 🙂

Highlighted
Community Support
Community Support

Re: json custom theme - multiple series customization

Hi @le_tool ,

 

After my tests and research, I cannot find these json properties to configure.

And I don't think "firstLevelElements" is the correct property. You could create a support ticket here to ask for these json properties.

Support Ticket.gif

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Highlighted
Helper I
Helper I

Re: json custom theme - multiple series customization

Hello @v-eachen-msft ,

 

how do I open a ticket there? It seems that only PRO users can create those.

 

Thank you

Highlighted
Community Support
Community Support

Re: json custom theme - multiple series customization

Hi @le_tool ,

 

If you don't have a Pro license, you could post feedback in the bottom of the following document. But the efficiency may not be as high as support ticket.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Highlighted
Helper I
Helper I

Re: json custom theme - multiple series customization

Thank you @v-eachen-msft 

 

Have a nice day 🙂

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors