pyecharts / pyecharts-app Goto Github PK
View Code? Open in Web Editor NEWpyecharts 体验网站(已弃用)
Home Page: http://pyecharts.herokuapp.com/
License: MIT License
pyecharts 体验网站(已弃用)
Home Page: http://pyecharts.herokuapp.com/
License: MIT License
感觉每根K线之间缝隙有点大,有没有对应的参数可以调整的?谢谢了
很多方法更改了
Mac通过pip安装pyecharts, sudo pip install pyecharts -U
然后通过 pip list | grep pyecharts,看到下边确实有这个模块
pyecharts 1.0.0
运行demo的代码,报错如下
Traceback (most recent call last):
File "exercise_10.py", line 3, in
from pyecharts.charts import Bar
File "/Library/Python/2.7/site-packages/pyecharts/init.py", line 3, in
from pyecharts import charts, commons, components, datasets, options, render, scaffold
File "/Library/Python/2.7/site-packages/pyecharts/charts/init.py", line 4, in
from ..charts.basic_charts.bar import Bar
File "/Library/Python/2.7/site-packages/pyecharts/charts/basic_charts/bar.py", line 15
def init(self, init_opts: Union[opts.InitOpts, dict] = opts.InitOpts()):
^
SyntaxError: invalid syntax
请问大神们是什么问题啊?demo 代码如下
from pyecharts.charts import Bar
from pyecharts import options as opts
bar = (
Bar()
.add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"])
.add_yaxis("商家A", [114, 55, 27, 101, 125, 27, 105])
.add_yaxis("商家B", [57, 134, 137, 129, 145, 60, 49])
.set_global_opts(title_opts=opts.TitleOpts(title="某商场销售情况"))
)
bar.render()
What is the license of this project?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.