from flask import Flask
app=Flask(__name__)

@app.route("/")
def hello_world():
    return 'Hello world'
from pyecharts.charts import Bar

bar = Bar()
bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"])
bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90])
# render 会生成本地 HTML 文件，默认会在当前目录生成 render.html 文件
# 也可以传入路径参数，如 bar.render("mycharts.html")

if __name__=='__main__':
    app.run()
    bar.render("mt.html")
7a8b3bc0289767f04e38908c43f47d303432beed
<mask token>


@app.route('/')
def hello_world():
    return 'Hello world'


<mask token>

<mask token>


@app.route('/')
def hello_world():
    return 'Hello world'


<mask token>
bar.add_xaxis(['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'])
bar.add_yaxis('商家A', [5, 20, 36, 10, 75, 90])
if __name__ == '__main__':
    app.run()
    bar.render('mt.html')

<mask token>
app = Flask(__name__)


@app.route('/')
def hello_world():
    return 'Hello world'


<mask token>
bar = Bar()
bar.add_xaxis(['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'])
bar.add_yaxis('商家A', [5, 20, 36, 10, 75, 90])
if __name__ == '__main__':
    app.run()
    bar.render('mt.html')

from flask import Flask
app = Flask(__name__)


@app.route('/')
def hello_world():
    return 'Hello world'


from pyecharts.charts import Bar
bar = Bar()
bar.add_xaxis(['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'])
bar.add_yaxis('商家A', [5, 20, 36, 10, 75, 90])
if __name__ == '__main__':
    app.run()
    bar.render('mt.html')

from flask import Flask
app=Flask(__name__)

@app.route("/")
def hello_world():
    return 'Hello world'
from pyecharts.charts import Bar

bar = Bar()
bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"])
bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90])
# render 会生成本地 HTML 文件，默认会在当前目录生成 render.html 文件
# 也可以传入路径参数，如 bar.render("mycharts.html")

if __name__=='__main__':
    app.run()
    bar.render("mt.html")