pyecharts:y轴记号在使用is\u con后显示数字而不是文本

2024-05-28 22:56:46 发布

您现在位置:Python中文网/ 问答频道 /正文

有人在用皮查特吗?我离开plotly是因为我需要一个y轴滑块。你知道吗

实现下面的https://github.com/pyecharts/pyecharts是直截了当的。你知道吗

    attr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    vals = [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]

    bar = Bar(key, "Counts")

    bar.add(name="",attr,vals,
            is_convert=True, 
            is_datazoom_extra_show=True,
            is_toolbox_show=False)

    bar.render(path=plot_path + key + '_echarts.html',)

但是,我的y轴记号不会在y轴上显示类别名称。 Mouseover显示类别名称在那里。你知道吗

有人有主意吗?你知道吗


Tags: pathkeyhttpsgithub名称trueisshow

热门问题