zoukankan      html  css  js  c++  java
  • InitOpts:初始化配置项

    
    class InitOpts(
        # 图表画布宽度,css 长度单位。
         str = "900px",
    
        # 图表画布高度,css 长度单位。
        height: str = "500px",
    
        # 图表 ID,图表唯一标识,用于在多图表时区分。
        chart_id: Optional[str] = None,
    
        # 渲染风格,可选 "canvas", "svg"
        # # 参考 `全局变量` 章节
        renderer: str = RenderType.CANVAS,
    
        # 网页标题
        page_title: str = "Awesome-pyecharts",
    
        # 图表主题
        theme: str = "white",
    
        # 图表背景颜色
        bg_color: Optional[str] = None,
    
        # 远程 js host,如不设置默认为 https://assets.pyecharts.org/assets/"
        # 参考 `全局变量` 章节
        js_host: str = "",
    
        # 画图动画初始化配置,参考 `global_options.AnimationOpts`
        animation_opts: Union[AnimationOpts, dict] = AnimationOpts(),
    )
    
             Bar(init_opts=opts.InitOpts(theme=ThemeType.ROMANTIC,width="1200px",height="300px",chart_id='efg123',renderer='RenderType.SVG'))
      
  • 相关阅读:
    053-509
    053-298
    053-255
    css实现省略号
    github上写blog
    解决内容被挤压缩小问题
    request.getRequestDispather().forward()与response.sendRedirect()
    资料,来自HTML5前端开发学习⑤群
    checkbox与jq<转>2
    checkbox与jq<转>
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348636.html
Copyright © 2011-2022 走看看