Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 550 Bytes

bar_datazoom_inside.md

File metadata and controls

22 lines (17 loc) · 550 Bytes

pyecharts 代码 / 效果

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

c = (
    Bar()
    .add_xaxis(Faker.days_attrs)
    .add_yaxis("商家A", Faker.days_values, color=Faker.rand_color())
    .set_global_opts(
        title_opts=opts.TitleOpts(title="Bar-DataZoom(inside)"),
        datazoom_opts=opts.DataZoomOpts(type_="inside"),
    )
    .render("bar_datazoom_inside.html")
)
<iframe width="100%" height="800px" src="Bar/bar_datazoom_inside.html"></iframe>