cosname / recharts

An interface to ECharts
https://recharts.cosx.org
BSD 3-Clause "New" or "Revised" License
337 stars 149 forks source link

在flexdashboard的编码问题 #33

Closed glfeng318 closed 7 years ago

glfeng318 commented 7 years ago
x = data.frame(dt=1:6, buymoney=1:6, ordertype=c('充值','充值','充值','提现','提现', '提现'))
eBar(dat= x, xvar=~dt, yvar=~buymoney, series=~ordertype)

同一段代码在Rstudio的viewer中正常显示中文,但是在rmarkdown的flexdashboard格式里中文乱码了

title: 'test'
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
    source_code: embed
runtime: shiny
yummyZhou commented 7 years ago

请确认你将rmarkdwon 文件存为UTF-8 编码格式, 我这里的测试是好的。

image 4

image 3

image 2