Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
Im creating a JSON file with the formats and colors that i use in my company.
I want to set the alignment of the values as center (by default).
I have edited the json file based on this documentation:
https://github.com/mattrudy/PowerBI-ThemeTemplates/blob/master/Table.json
But i can't find the proper field to format:
"tableEx": {
"*": {
"general": [{
"responsive": true,
"keepLayerOrder": true
}],
"background": [{
"show": true,
"color": { "solid": { "color": "#232323"}},
"transparency": 0
}],
"border": [{
"color": { "solid": { "color": "#232323"}},
"show": true,
"radius": 6
}],
"title": [{
"show": true,
"fontColor": { "solid": { "color": "#ffffff" } },
"background": { "solid": { "color": "#232323" } },
"alignment": "center"
}],
"grid": [{
"gridVertical": false,
"gridVerticalColor": { "solid": { "color": "#FFB8DD"}},
"gridVerticalWeight": 2,
"gridHorizontal": false,
"gridHorizontalColor": { "solid": { "color": "#FFB8DD"}},
"gridHorizontalWeight": 2,
"rowPadding": 2,
"outlineColor": { "solid": { "color": "#FFB8DD"}},
"outlineWeight": 0,
"textSize": 14,
"imageHeight": 100
}],
"columnHeaders": [{
"fontColor": { "solid": { "color": "#ffffff"}},
"backColor": { "solid": { "color": "#232323"}},
"outline": "Frame",
"autoSizeColumnWidth": true,
"fontFamily": "Segoe UI",
"fontSize": 10,
"alignment": "Center",
"wordWrap": true
}],
"values": [{
"fontColorPrimary": { "solid": { "color": "#ffffff"}},
"backColorPrimary": { "solid": { "color": "#232323"}},
"fontColorSecondary": { "solid": { "color": "#ffffff"}},
"backColorSecondary": { "solid": { "color": "#333333"}},
"outline": "none",
"urlIcon": true,
"wordWrap": true,
"fontFamily": "Segoe UI",
"fontSize": 8
}],
"total": [{
"totals": true,
"fontColor": { "solid": { "color": "#ffffff"}},
"backColor": { "solid": { "color": "#232323"}},
"outline": "Frame",
"fontFamily": "'Segoe UI Bold', wf_segoe-ui_bold, helvetica, arial, sans-serif",
"fontSize": 8
}],
"stylePreset": [{
"name": "none"
}]
}
}
Can someone help me?
Hi @Renan_DFB
Thanks for reaching out to us.
If you try to add "alignment": "center" in Values, will it work?
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
96 | |
85 | |
77 | |
67 | |
63 |
User | Count |
---|---|
110 | |
96 | |
96 | |
67 | |
59 |