Forum Discussion
Custom Theme Preview for Visuals: Visual Name for Matrix?
Using the Sept 2017 PBI Desktop, with custom theme preview...
I am trying to apply a default theme for a matrix. The visual name of "matrix" does not seem to work.
Here is an excerpt of my theme JSON file:
----------------------------------------------------
"tableEx":{
"*":{
"*":[{
"fontSize":20
}]
}
}
,
"matrix":{
"*":{
"*":[{
"fontSize":20
}]
}
}
,
----------------------------------------------------
The format for "tableEx" is applied. but the format for matrix is not applied. There is no "matrixEx" visual, I think. Is this a known limitation?
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
7 Replies
- TomMartensSuper User
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
- AnonymousNot applicable
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 } ] } } } }- TomMartensSuper 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