Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi All,
Trying to format the Default Tooltip - change black background colour / font colour / size / etc... (any and all attributes ) but via the Json theme file - I know its possible - done it before but mislaid the details... and sadly a web trawl to no avail...
Please note I am not seeking to create a Report Tip and update all my visuals... its just the json theme file syntax I am after to set the default tooltip attributes.
Many thanks in advance 🙂
Solved! Go to Solution.
Hi @v-yingjl
Semantics on what I meant or how you interpretted what I said but yes I was after the Json code to change to the default tooltip in the Theme... and the good news is that I have found it 🙂
{
"name": "Report Theme Name",
"visualStyles": { "*": { "*": { "visualTooltip": [{ "type": "Default",
"titleFontColor": {"solid": {"color": "#000080"}},
"valueFontColor": {"solid": {"color": "#000080"}},
"background": {"solid": {"color": "#F0F0F0"}}
}]
}
},
}
}
Is this the only way we can change the default font size for a tool tip? We're embedding Power BI charts onto a webpage but on mobile the tool tip font is massive as it doesn't seem to be responsive.
Hi @Anonymous ,
You should know that we cannot set the theme of tooltips by .json file in power bi desktop.
I think you meant to use the report page as a tooltip, so change the theme of report page by .json file.
Basic json format:
{
"name": "St Patrick's Day",
"dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
"background":"#FFFFFF",
"foreground": "#3A6108",
"tableAccent": "#568410"
}
A basic theme that defines these colors might appear as follows:
{
"name": "Custom Theme",
"dataColors": [
"#118DFF",
"#12239E",
"#E66C37",
"#6B007B",
"#E044A7",
"#744EC2",
"#D9B300",
"#D64550",
"#197278",
"#1AAB40"
],
"good": "#1AAB40",
"neutral": "#D9B300",
"bad": "#D64554",
"maximum": "#118DFF",
"center": "#D9B300",
"minimum": "#DEEFFF",
"null": "#FF7F48"
}
You can refer this document which introducing the theme of report by .json file in details that could help you better:
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-yingjl
Semantics on what I meant or how you interpretted what I said but yes I was after the Json code to change to the default tooltip in the Theme... and the good news is that I have found it 🙂
{
"name": "Report Theme Name",
"visualStyles": { "*": { "*": { "visualTooltip": [{ "type": "Default",
"titleFontColor": {"solid": {"color": "#000080"}},
"valueFontColor": {"solid": {"color": "#000080"}},
"background": {"solid": {"color": "#F0F0F0"}}
}]
}
},
}
}
@Anonymous , check if theme generator can help is creating one that server the purpose
https://powerbi.tips/tools/report-theme-generator-v3/
Sadly No - (something I recall from the past but had another look just in case it had been updated since last time I looked ) but thanks for trying 🙂
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |