Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello All!
Trying to set the color in a JSON file for 'Color' property in X & Y axis for Line Chart. I can change the text size for each via the JSON file, so I know I'm in the appropriate card.
Here is what I have in my JSON file for this visual:
"lineChart":{ "*":{ "categoryAxis":[{ "show": true, "axisType": "Categorical", "fontColorPrimary": "#FFFFFF", "fontSize": 8, "fontFamily": "Segoe UI", "concatenateLabels": false, "showAxisTitle": true }], "valueAxis":[{ "show": true, "position": "Left", "axisScale": "linear", "showAxisTitle": false, "labelColor": "#000000", "fontFamily": "Segoe UI", "fontSize": 10 }], "labels":[{ "show": true }] } }
I've tried color, fontColor, primaryFontColor. Kind of at a loss.
I've been using Curbal's PBI app for assistance with this (found HERE).
Any idears?
Solved! Go to Solution.
Try labelColor for those axes. It's been awhile since I've personally verified most of my theme JSON templates, but that was the last known working value for Line.
https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/
Try labelColor for those axes. It's been awhile since I've personally verified most of my theme JSON templates, but that was the last known working value for Line.
https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/
While that didn't work, the link is REALLY helpful. If you created that, THANK YOU! If not, thanks any how!
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
68 | |
67 | |
41 | |
39 |
User | Count |
---|---|
48 | |
44 | |
29 | |
28 | |
28 |