Forum Discussion
KPI Visual's text size suddenly too small
- Anonymous7 years ago
Yeah you guys are right. Happily specifying the fontSize for the container in your theme does seem to take hold in the service even though it has no effect in Desktop. So you can do edit the theme and somewhere inside the "visutalStyles" container add:
"kpi":{ "*":{ "indicator":[ { "fontSize":48 } ] } },Super annoying that this needs fixing on every report though.
Hi Anonymous ,
Based on my test using Power BI version : 2.68.5432.761 64-bit (April 2019). I cannot reproduce your issue here. Could you please try to delete the visual and recreate it again. Or you can delete the dataset and republish the report.
- Anonymous7 years agoNot applicable
Hello, I am running 2.68.5432.661 64-bit (April 2019), however using the scenario that you have (create dummy table, visual and publish), I couldn't reproduce it either. I would recommend checking any already published reports with KPI visuals (surely you have access to some). Based on replies in this thread, I'm not the only one experiencing this.
New findings:
- all the reports (even the ones I haven't recently republished) are affected by this, so it looks like a PBI service issue rather than desktop.
- I have tried deleting and re-creating the visual and republishing > still same issue
- I have tried publishing to a new workspace > still the same issue
I think this actually needs a proper root cause analysis, if you're telling me I need to go and re-create all our published reports with KPI visuals on them to fix it, sorry, that's not acceptable.
Thanks
- Anonymous7 years agoNot applicable
OK, I believe I have narrowed it down - it must have something to do with custom themes.
I have used the same custom theme for my testing report as for the one with the issue.
Below is the code for the .json file of one of our corporate themes (which has worked perfectly fine for over 2 years until now). If you import it in your PBIX, you should see the same behavior.
{ "name": "Multi1", "dataColors": [ "#E2A84E", "#A1A849", "#649F5E", "#329077", "#2E7C85", "#4E647F", "#634B67", "#653745", "#00AEB9", "#5ABAC4", "#007184", "#8ECBD2", "#00B5C7", "#38C0EE", "#009DDE" ], "background": "#FFFFFF", "foreground": "#3A6108", "tableAccent": "#329077", "visualStyles": { "*": { "*": { "*": [ { "responsive": true, "wordWrap": true, "fontSize": 9, "urlIcon": true } ], "categoryAxis": [ { "showAxisTitle": true } ], "valueAxis": [ { "showAxisTitle": true } ], "categoryLabels": [ { "show": true } ] } }, "card": { "*": { "labels": [ { "fontSize": 20 } ], "categoryLabels": [ { "fontSize": 12, "Color": "#006873" } ] } }, "pieChart": { "*": { "legend": [ { "show": true, "showTitle": true } ], "labels": [ { "labelStyle": "Data value, percent of total" } ] } }, "lineStackedColumnComboChart": { "*": { "labels": [ { "show": true } ] } } } }- Anonymous7 years agoNot applicable
Yeah looks like Anonymous is right. I published a test report without my company's custom theme and there were no problems, but when I republish it after applying the theme I'm seeing the issue again.
Before applying custom theme:
After applying custom theme:
Note that there is nothing in the theme to specifically format a kpi visual