pyecharts 能够帮助你快速实现数据可视化。
    效果大致如下:
    image.png

    1. from pyecharts import options as opts
    2. from pyecharts.charts import Liquid, Page
    3. from pyecharts.globals import SymbolType
    4. import os
    5. def liquid() -> Liquid:
    6. c = (
    7. Liquid()
    8. .add("lq", [0.67, 0.30, 0.15])
    9. .set_global_opts(title_opts=opts.TitleOpts(title="Liquid"))
    10. )
    11. return c
    12. liquid().render('liquid.html')
    13. os.system("open liquid.html")

    pyecharts 还有很多玩法,你可以下载下面的示例程序来进一步体验。
    pyecharts绘图.rar