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.
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
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
- dittmk7 years agoNew Member
I have no solution - but I believe something may have been released to the service which isn't an option for the desktop - namely this font size for the KPI visual.
Seems like I can't upload a photo anymore - not my day I guess - so what I see is if you click the KPI - then the paint roller - then Indicator - you'll have a text size there. Which for me is set to 8 - about what it shows as on the screen.
On the desktop version - this font size is not an option.
So i'll bet that what's happening is that it's picking up the default size from our custom json file (which is 8 for me) now whereas before it was not doing that.
v-frfei-msft - can you investigate with those additional details?
- Anonymous7 years agoNot applicable
Good spotting, yes, you can often see in the service what's to come for Desktop. This is one of those things. I have changed the font size for some of the reports.
Still a bit gutted at this seemingly overwhelming attitude of Microsoft - "Look at all the new updates yay! Btw please go and fix all your reports though.."
:)