Power BI currently does not have Chinese fonts. In "Breaking Power BI Font Limits", a Chinese font using Song, Kai, and Microsoft Yahei is introduced. method. This method has a downside: it requires third-party plugins. This article introduces a trick that doesn't require a third-party plug-in, just a formula. The effect is as follows:
The full metric is as follows:
- < li>
SVG font= span>
VAR Your_text = 'Who am I '
VAR Font = 'Kaiti'
VAR Color = 'red'
VAR Size = '80'
//Please enter parameters above
VAR SVG_start1 = < span class='code-snippet__string'>'data:image/svg+xml;utf8,'
VAR SVG_start2 = '<svg xmlns='http://www.w3.org/2000/svg' ><text x ='0' y='
VAR SVG_end = < span class='code-snippet__string'>'</text></svg>'
RETURN
SVG_start1 & SVG_start2 & '''< /span> & Size & ''' & ' font-size=' & ''' & Size & ''' & ' fill=' & ''' & Color & ''' & ' font-family=' & ''' & Font & ',' & Font & '_MSFontService,sans-serif' & ''' & '>' & Your_text & SVG_end
This is another Power BI application of SVG. The text information, font, color, and font size in the measurement value can be modified as required. Note that the font needs the corresponding English name, for example, Microsoft Yahei corresponds to Microsoft YaHei. You can use a search engine to search for a font English name comparison table.
Sample file download (copy the link below to the browser or click the lower left corner to read the original text):
https://mianbaoduo.com/o/bread/YZqXlJhy
You may be interested in the following Power BI SVG articles:
SVG map resources of the world, provinces, cities, districts and counties
SVG weather forecast pattern Power BI application
SVG shopping mall map Power BI application
SVG business circle map analysis product size
PPT generates SVG to design your own exclusive chart
SVG mini shader map for tabular matrices
SVG crying face and smiling face pattern indicates achievement of achievement
Use the SVG function of PPT to break through the font limit of Power BI
SVG custom arbitrary sparkline
Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/A%20formula%20breaks%20through%20the%20font%20limit%20of%20Power%20BI.html
评论列表(196条)
测试