Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
kral_06
Frequent Visitor

Cyrillic characters in R custom visuals

Hi everyone.

 

I have created a custom visual using R. It works fine but it does not show cyrillic characteres properly. I've tried adding "Sys.setlocale("LC_CTYPE", "russian")" to the code in script.r but unfortunately it does not help. I have cyrillic characters both in my data and my code (adding axis labels in Russian).

 

Is there any way to fix this?

1.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4 REPLIES 4
v-viig
Community Champion
Community Champion

We'll discuss this issue with R-script developers and get back with an answer.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

v-viig
Community Champion
Community Champion

We've got details for R devs.

 

If seems you have to explicitly use a font that supports Cyrillic characters.

If you're in Power BI Desktop you have to choose the appropriate font and use par(family = powerbi_rFamilyFontName) as in service.

If you're in Power BI Service, you have to override powerbi_rFamilyFontName to be the font name and r_powerbiFontName to be the font file name (as font name with .ttf extension).

 

Please let us know if this solution solves the issue.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

@v-viig, thank you very much for your reply. 

 

I did not understand how and where I should specify the font. Could you give an example or more detailed instructions?

v-viig
Community Champion
Community Champion

We'd recommend to contact [email protected] to get this issue resolved.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

[email protected]

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.