Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello, Im trying to make a waffle chart in Power BI desktop using R, and i would like to use icons from FontAwesome.
Im getting the following code to work in a Open R but when I use it in the R console i Power BI it gives me an error saying FontAwesome not found.
Here is the code I run:
install.packages(c("waffle", "extrafont"))
library(waffle)
library(extrafont)
font_import(pattern = 'fontawesome-webfont')
loadfonts(device = "win")
waffle(c(50, 30, 15, 5), rows = 5, use_glyph = "user", glyph_size = 6)Is there some other font I can use for icons or how do I get Power BI to find FontAwesome
Hi @Katalo
Do you download "downloaded Font Awesome" in your server?
Here is a similar issue with solution, please check it and give me feedback if it helps.
Font Awesome in R, loaded but not found by waffle
Best Regards
Maggie
I have tried the steps in that post, but still get FontAwesome not found.
When i use this code in R open I get an image:
library(waffle) library(extrafont) font_import(pattern = 'fontawesome-webfont') loadfonts(device = "win") waffle(c(50, 30, 15, 5), rows = 5, use_glyph = "user", glyph_size = 6)
However, i have to do it in steps and after font_import i have to give R open an answer to this question:
Importing fonts may take a few minutes, depending on the number of fonts and the speed of the system. Continue? [y/n] y
After that I can make the waffle chart and get an image with the correct icon.
But when i use the above code in PBI R console I get an Error saying Font Awesome not found.
Can I skip the font_import somehow maybe?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |