Git Product home page Git Product logo

Comments (7)

freetest avatar freetest commented on June 12, 2024

补充

<script src="//cdn.bootcss.com/echarts/3.3.1/echarts.js" charset="UTF-8"></script>

from echarts-python.

yufeiminds avatar yufeiminds commented on June 12, 2024

抱歉这三个月比较忙碌,才抽出空来维护这个项目。

Python 中大家习惯约定使用 Unicode 来交换中文字符,只需:

chart = Echart(u'中文', u'The data is fake 中文')

即可

from echarts-python.

freetest avatar freetest commented on June 12, 2024

我试过在前面加u了,但是直接显示空白。

'title': {'text': u'\u4f60\u597d', 'subtext': 'The data is fakt'}};

from echarts-python.

freetest avatar freetest commented on June 12, 2024

'''
def echart(request):

chart = Echart(u"你好", "The data is fakt")

chart.use(Bar("Tyloo", ["50", "72", "64", "42", "30", "72"], ))
chart.use(Bar("VG", ["55", "48", "56", "63", "70", "55"]))
chart.use(Axis("category", "bottom", "map", ["de_dust2", "de_cache", "de_mirage", "中文", "de_nuke", "de_cbble"]))
chart.use(Legend(["Tyloo", "VG"], position=('center', "bottom")))
options = chart.json

return render(request,'test/c.html',locals())

'''

from echarts-python.

yufeiminds avatar yufeiminds commented on June 12, 2024

有可能是 Axis 的问题,更新下最新的版本试试

from echarts-python.

weixiaohhh avatar weixiaohhh commented on June 12, 2024

你解决了吗?是版本的问题吗?

from echarts-python.

weixiaohhh avatar weixiaohhh commented on June 12, 2024

我换成python3 解决的。

from echarts-python.

Related Issues (17)

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.