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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

JSON theme Column Chart: line style

Here is an extract of my JSON theme file for PowerBI. My file is working as a change in "gridlineColor" is reflected is PowerBI. However, the "lineStyle" command is not working. The "Line style" in PowerBI is still set to the standard "Dashed".

 

Any suggestions to why this may be and how to fix this? Thanks!

 

 

 

 

        "columnChart" : {
            "*": {
                "categoryAxis" : [{
                    "show" : true,
                    "fontSize" : 9,
                    "showAxisTitle" : true,
                    "concatenateLabels": false,
                    "lineStyle": "solid",
                    "gridlinesShow": true,
                    
                    "gridlineColor": {
                        "solid": {
                            "color": "#B3B3B3"
                            }
                        }
                    }]                
            }
        }

 

 

 

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi ,

 

Is this the result?

Vlianlmsft_0-1637822409567.png

Try the sample json theme:

{
	"name": "ClusteredColumnTemplate",
	"visualStyles": {
		"clusteredColumnChart": {
			"*": {
				"general": [{
					"responsive": true
				}],
				"legend": [{
					"show": true,
					"position": "Top",
					"showTitle": true,
					"titleText": "",
					"labelColor": { "solid": { "color": "#01B8AA"}},
					"fontFamily": "Courier New",
					"fontSize": 10
				}],
				"categoryAxis": [{
					"show": true,
					"labelColor": { "solid": { "color": "#01B8AA"}},
					"fontSize": 14,
					"fontFamily": "Courier New",
					"preferredCategoryWidth": 30,
					"maxMarginFactor": 28,
					"innerPadding": 22,
					"concatenateLabels": true,
					"showAxisTitle": true,
					"axisStyle": "showTitleOnly",
					"titleColor": { "solid": { "color": "#01B8AA"}},
					"titleText": "asdf",
					"titleFontSize": 12,
					"titleFontFamily": "Segoe UI"
				}],
				"valueAxis": [{
					"show": true,
					"position": "Right",
					"axisScale": "Linear",
					"start": 0,
					"end": 10,
					"labelColor": { "solid": { "color": "#01B8AA"}},
					"fontSize": 14,
					"fontFamily": "Courier New",
					"labelDisplayUnits": "0",
					"labelPrecision": "Auto",
					"showAxisTitle": true,
					"axisStyle": "showTitleOnly",
					"color": { "solid": { "color": "01B8AA"}},
					"titleText": "asdf",
					"titleFontSize": 12,
					"titleFontFamily": "Courier New",
					"gridlineShow": true,
					"gridlineColor": { "solid": { "color": "#01B8AA"}},
					"gridlineThickness": 2,
					"gridlineStyle": "solid"
				}],
				"dataPoint": [{
					"defaultColor": { "solid": { "color": "#448822"}}
				}],
				"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
				}],		
				"plotArea": [{
					"transparency": 20
				}]
			}
		}
	}
}

 

Best Regards,
Liang
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-lianl-msft
Community Support
Community Support

Hi ,

 

Is this the result?

Vlianlmsft_0-1637822409567.png

Try the sample json theme:

{
	"name": "ClusteredColumnTemplate",
	"visualStyles": {
		"clusteredColumnChart": {
			"*": {
				"general": [{
					"responsive": true
				}],
				"legend": [{
					"show": true,
					"position": "Top",
					"showTitle": true,
					"titleText": "",
					"labelColor": { "solid": { "color": "#01B8AA"}},
					"fontFamily": "Courier New",
					"fontSize": 10
				}],
				"categoryAxis": [{
					"show": true,
					"labelColor": { "solid": { "color": "#01B8AA"}},
					"fontSize": 14,
					"fontFamily": "Courier New",
					"preferredCategoryWidth": 30,
					"maxMarginFactor": 28,
					"innerPadding": 22,
					"concatenateLabels": true,
					"showAxisTitle": true,
					"axisStyle": "showTitleOnly",
					"titleColor": { "solid": { "color": "#01B8AA"}},
					"titleText": "asdf",
					"titleFontSize": 12,
					"titleFontFamily": "Segoe UI"
				}],
				"valueAxis": [{
					"show": true,
					"position": "Right",
					"axisScale": "Linear",
					"start": 0,
					"end": 10,
					"labelColor": { "solid": { "color": "#01B8AA"}},
					"fontSize": 14,
					"fontFamily": "Courier New",
					"labelDisplayUnits": "0",
					"labelPrecision": "Auto",
					"showAxisTitle": true,
					"axisStyle": "showTitleOnly",
					"color": { "solid": { "color": "01B8AA"}},
					"titleText": "asdf",
					"titleFontSize": 12,
					"titleFontFamily": "Courier New",
					"gridlineShow": true,
					"gridlineColor": { "solid": { "color": "#01B8AA"}},
					"gridlineThickness": 2,
					"gridlineStyle": "solid"
				}],
				"dataPoint": [{
					"defaultColor": { "solid": { "color": "#448822"}}
				}],
				"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
				}],		
				"plotArea": [{
					"transparency": 20
				}]
			}
		}
	}
}

 

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

 

 

 

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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