Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Does anyone know if it's possible to render a Python visual in a non-default font (default=Deja Vu Sans) in Service? I'm trying to create a Python visual using the DIN font to match the rest of my report, but in the Service, that visual just renders using the default font. I thought maybe it was because DIN isn't pre-loaded so tried using a rough equivalent of Bahnschrift, but that didn't work either. Thoughts?
After lot of struggle I was able to make it work.
So the original was this:
And the new font one is:
This is how I did it:
You may want to provide more details. Which renderer are you using? Pyplot ?
How to Change Fonts in Matplotlib (With Examples) - Statology
Sorry - yes, matplotlib pyplot.
The link you provided shows how to change font in the python code itself. I don't have any issues with that. I can change the font and it updates fine in Power BI Desktop. When I publish the report to Service, though, all those font changes to DIN don't hold and the python visual defaults back to matplotlib's default font of Deja Vu Sans.
That's too bad. Maybe you can ask the product team what they support in that area. I am only aware of an article about supported python packages. https://docs.microsoft.com/en-us/power-bi/connect-data/service-python-packages-support
User | Count |
---|---|
34 | |
21 | |
21 | |
14 | |
12 |
User | Count |
---|---|
26 | |
19 | |
18 | |
18 | |
14 |