Forum Discussion
Custom Theme Preview for Visuals: Visual Name for Matrix?
- 8 years ago
Hey,
maybe one of the mysteries of naming things ...
The name you have to use for the matrix visual is pivotTable:
"pivotTable": { "*": { "rowHeaders": [{ "fontSize":14 }], "columnHeaders": [{ "fontSize":14 }], "values": [{ "fontSize":12 }] } }Regards
Tom
Hey,
maybe one of the mysteries of naming things ...
The name you have to use for the matrix visual is pivotTable:
"pivotTable": {
"*": {
"rowHeaders": [{
"fontSize":14
}],
"columnHeaders": [{
"fontSize":14
}],
"values": [{
"fontSize":12
}]
}
}Regards
Tom
How do you know that? The documentation says there is a visual called "matrix". Do you have a more complete set of documentation? I'm trying to change the font color (of anything!) and I cannot seem to do it. fontColor, color don't seem to work.
{
"name": "test",
"dataColors": [ "#FC9425", "#33C6BB"],
"background": "#293537",
"foreground": "#6B7A8F",
"tableAccent": "#6B7A8F",
"visualStyles": {
"card": {
"*": {
"labels": [
{
"fontSize": 30,
"color": "#FFFFFF"
}
],
"categoryLabels": [
{
"fontSize": 16
}
]
}
}
}
}- TomMartens8 years agoSuper User
Hey Anonymous,
unfortunately I do not have a more complete set of documentation. The documentation also states that there is a visual called "pivotTable". I wanted to change the "Matrix" visual, because matrix, didn't work I tried promising visuals, and pivotTable worked - that simple.
Regards
Tom
- Anonymous8 years agoNot applicable
Thanks Tom! If I went down the list one by one I would have found it eventually. Thanks for the time savings and for pointing me in the right direction!
- Anonymous8 years agoNot applicable
In case anyone is wondering, you can set the font color, the syntax is like this:
"visualStyles": { "*": { "*": { "*": [ { "fontSize": 10, "fontFamily": "Segoe UI", "color": { "solid": { "color": "#E6E6E6" } } } ] } } }There's a great tool for creating custom themes here: https://powerbi.tips/tools/report-theme-generator-v3/
Thank you to Adam Harper from PowerDAX for pointing it out!