当前位置: 首页>>代码示例>>Python>>正文


Python Bar.chart_id方法代码示例

本文整理汇总了Python中pyecharts.Bar.chart_id方法的典型用法代码示例。如果您正苦于以下问题:Python Bar.chart_id方法的具体用法?Python Bar.chart_id怎么用?Python Bar.chart_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyecharts.Bar的用法示例。


在下文中一共展示了Bar.chart_id方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_bar_stack

# 需要导入模块: from pyecharts import Bar [as 别名]
# 或者: from pyecharts.Bar import chart_id [as 别名]
def test_bar_stack():
    bar = Bar("柱状图数据堆叠示例")
    bar.add("商家A", CLOTHES, clothes_v1, is_stack=True)
    bar.add("商家B", CLOTHES, clothes_v2, is_stack=True)
    bar.chart_id = "id_chart_id"
    html_content = bar._repr_html_()
    assert "id_chart_id" == bar.chart_id
    assert "dataZoom" not in html_content
    assert "stack_" in html_content
开发者ID:Jesszen,项目名称:pyecharts,代码行数:11,代码来源:test_bar.py


注:本文中的pyecharts.Bar.chart_id方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。