Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 534 Bytes

funnel_label_inside.md

File metadata and controls

23 lines (17 loc) · 534 Bytes

pyecharts 代码 / 效果

from pyecharts import options as opts
from pyecharts.charts import Funnel
from pyecharts.faker import Faker


c = (
    Funnel()
    .add(
        "商品",
        [list(z) for z in zip(Faker.choose(), Faker.values())],
        label_opts=opts.LabelOpts(position="inside"),
    )
    .set_global_opts(title_opts=opts.TitleOpts(title="Funnel-Label(inside)"))
    .render("funnel_label_inside.html")
)
<iframe width="100%" height="800px" src="Funnel/funnel_label_inside.html"></iframe>