Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |