Forum Discussion

le_tool's avatar
le_tool
Helper I
6 years ago

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:

 

 

.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