Comments (7)
补充
<script src="//cdn.bootcss.com/echarts/3.3.1/echarts.js" charset="UTF-8"></script>from echarts-python.
抱歉这三个月比较忙碌,才抽出空来维护这个项目。
Python 中大家习惯约定使用 Unicode 来交换中文字符,只需:
chart = Echart(u'中文', u'The data is fake 中文')
即可
from echarts-python.
我试过在前面加u了,但是直接显示空白。
'title': {'text': u'\u4f60\u597d', 'subtext': 'The data is fakt'}};
from echarts-python.
'''
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.
有可能是 Axis 的问题,更新下最新的版本试试
from echarts-python.
你解决了吗?是版本的问题吗?
from echarts-python.
我换成python3 解决的。
from echarts-python.
Related Issues (17)
- windows下这是什么情况python3.5 HOT 3
- 怎么设置 "yAxis": {} 呢? HOT 1
- sample文件夹里的例子可以在win7下运行吗
- UnicodeDecodeError
- How to set the width HOT 1
- 怎么将figure 保存成矢量图
- python3 调用echart.plot()会报错 HOT 3
- 求Tree函数例子,画树状图
- 请问下楼主如何生成本地的json文件呢?
- legent not shown HOT 1
- Create samples for providing chart-code mapping
- Complete all options.
- Bad link addresses in readme HOT 1
- Could not be installed with pip HOT 1
- How to use echart in python?
- Add IPython notebook inline plot HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echarts-python.