GithubHelp home page GithubHelp logo

Chinese garbled in recharts about recharts HOT 6 OPEN

yihui avatar yihui commented on September 21, 2024
Chinese garbled in recharts

from recharts.

Comments (6)

yihui avatar yihui commented on September 21, 2024
  1. 我的例子都是在Linux下生成的,我没在Windows下测试过这个包,我估计你可能需要安装开发版本的htmltools包:devtools::install_github('rstudio/htmltools')
  2. 这个没有万能工具,取决于JSON的复杂程度,如果JSON里不包含JavaScript表达式(如函数),那么可以用jsonlite::fromJSON()将JSON字符串转化为R的list,多数情况下你很可能还是需要手动调整得到的R的结果

这个包我很可能在接下来的一年里不会继续开发,传list给echart()是最原始的调用ECharts的方法,和我预想的目标还差十万八千里,但我没时间去继续做这件事。

from recharts.

tianfangytan avatar tianfangytan commented on September 21, 2024

非常感谢!中文乱码的问题解决了~

from recharts.

tianfangytan avatar tianfangytan commented on September 21, 2024

hi!yihui~
我这两天使用echart遇到2个新问题,很抱歉又来当问题少年求教了。

1、请问echart()能否实现“混搭图”?如把折线图和柱形图画在一张图里。我使用了“折柱混搭”的代码(参见 http://echarts.baidu.com/doc/example/mix1.html ,改成R代码),结果只能显示series里先赋值的柱形图,不知道是函数本身不支持,还是混搭图的R代码有特殊技巧?

2、我想修改不同系列的颜色(如折线图中不同系列的折线颜色),发现使用代码“ option = list(color= 'blue')”图形颜色没有发生任何变化(itemStyle和lineStyle也测过,同样无效),是不是函数的使用不恰当?

from recharts.

yihui avatar yihui commented on September 21, 2024

不好意思,我不知道,目前也没有时间研究这些问题。

from recharts.

tianfangytan avatar tianfangytan commented on September 21, 2024

那我再研究下。非常感谢~

from recharts.

xwydq avatar xwydq commented on September 21, 2024

请教画图时中文乱码是如何解决的

from recharts.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.