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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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

pbicvsupport@microsoft.com

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

pbicvsupport@microsoft.com

@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 pbircvsupport@microsoft.com to get this issue resolved.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors