class pyecharts.charts.Gauge

    1. class Gauge(
    2. # 初始化配置项,参考 `global_options.InitOpts`
    3. init_opts: opts.InitOpts = opts.InitOpts()
    4. )

    func pyecharts.charts.Gauge.add

    1. def add(
    2. # 系列名称,用于 tooltip 的显示,legend 的图例筛选。
    3. series_name: str,
    4. # 系列数据项,格式为 [(key1, value1), (key2, value2)]
    5. data_pair: Sequence,
    6. # 是否选中图例
    7. is_selected: bool = True,
    8. # 最小的数据值
    9. min_: Numeric = 0,
    10. # 最大的数据值
    11. max_: Numeric = 100,
    12. # 仪表盘平均分割段数
    13. split_number: Numeric = 10,
    14. # 仪表盘半径,可以是相对于容器高宽中较小的一项的一半的百分比,也可以是绝对的数值。
    15. radius: types.Union[types.Numeric, str] = "75%",
    16. # 仪表盘起始角度。圆心 正右手侧为0度,正上方为 90 度,正左手侧为 180 度。
    17. start_angle: Numeric = 225,
    18. # 仪表盘结束角度。
    19. end_angle: Numeric = -45,
    20. # 轮盘内标题文本项标签配置项,参考 `series_options.LabelOpts`
    21. title_label_opts: Union[opts.LabelOpts, dict] = opts.LabelOpts(),
    22. # 轮盘内数据项标签配置项,参考 `series_options.LabelOpts`
    23. detail_label_opts: Union[opts.LabelOpts, dict] = opts.LabelOpts(),
    24. # 提示框组件配置项,参考 `series_options.TooltipOpts`
    25. tooltip_opts: Union[opts.TooltipOpts, dict, None] = None,
    26. # 图元样式配置项,参考 `series_options.ItemStyleOpts`
    27. itemstyle_opts: Union[opts.ItemStyleOpts, dict, None] = None,
    28. )







    _