cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shubham_002
Helper II
Helper II

Y Axis for Line showing decimal 2 digit values from JSON theme

Hi Team,

 

We are using JSON theme for our Power BI reports and we came across one strange behaviour of Line Chart when it is implemented on that. 

 

Y axis of Line chart showing value with decimal 2 digits (default) with JSON theme even those values are not overriding as well from properties section of Visualisation pane if we are setting manually. 

 

We are using below mentioned code to implement JSON theme there. Could you please let us know if any workaround available to set values from JSON theme of any property which need to be change from Visualisation Pane.  

 

"categoryAxis": [{
"show": true,
"axisType": "categorical",
"labelColor": { "solid": { "color": "#01B8AA"}},
"fontSize": 14,
"fontFamily": "Courier New",
"preferredCategoryWidth": 30,
"maxMarginFactor": 28,
"concatenateLabels": true,
"showAxisTitle": true,
"axisStyle": "showTitleOnly",
"titleColor": { "solid": { "color": "#01B8AA"}},
"titleText": "asdf",
"titleFontSize": 12,
"titleFontFamily": "Segoe UI"
}],
"valueAxis": [{
"show": true,
"position": "Right",
"axisScale": "Linear",
"labelColor": { "solid": { "color": "#01B8AA"}},
"fontSize": 14,
"fontFamily": "Courier New",
"labelDisplayUnits": "0",
"labelPrecision": "None",
"showAxisTitle": true,
"axisStyle": "showTitleOnly",
"color": { "solid": { "color": "01B8AA"}},
"titleText": "asdf",
"titleFontSize": 12,
"titleFontFamily": "Courier New",
"gridlineShow": true,
"gridlineColor": { "solid": { "color": "#01B8AA"}},
"gridlineThickness": 2,
"gridlineStyle": "dashed"
}],
"y2Axis": [{
"secStart": 0,
"secEnd": 2000,
"secFontSize": 16,
"secLabelColor": { "solid": { "color": "#0928DD"}},
"secShowAxisTitle": true,
"secTitleText": "Secondary Value Axis",
"secTitleColor": { "solid": { "color": "#448822"}}
}]

 

Thanks in Advance!!

1 REPLY 1
Eyelyn9
Community Support
Community Support

Hi @shubham_002 ,

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/JSON-theme-Data-label-quot-Display-units-quot-How-to-set-to...

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.

If not, please upload some insensitive data samples and expected output.

 

Best regards,

Eyelyn Qin

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors