pyecharts simplest usage

Documentation: https://pyecharts.org/#/zh-cn/quickstart

 

Bar pyecharts.charts Import from 

bar = Bar ()
bar.add_xaxis ([ "shirt", "sweater", "chiffon shirt", "pants", "high heels", "sock"]) # abscissa
bar. add_yaxis ( "business A", [5, 20, 36, 10, 75, 90]) # ordinate
# render local HTML file is generated, default files in the current directory generated render.html
# path parameters may be passed, The bar.render ( "mycharts.html")
bar.render ()

Guess you like

Origin www.cnblogs.com/xdlzs/p/11287211.html