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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Line Chart Theme: X & Y axis

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? 

 

1 ACCEPTED SOLUTION
deldersveld
Resident Rockstar
Resident Rockstar

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/

View solution in original post

3 REPLIES 3
deldersveld
Resident Rockstar
Resident Rockstar

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/

Anonymous
Not applicable

@deldersveld 

Hey!

 

It actually works. Thanks! I just think I specified the color incorrectly. 

Anonymous
Not applicable

@deldersveld 

 

While that didn't work, the link is REALLY helpful. If you created that, THANK YOU! If not, thanks any how!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.