class pyecharts.charts.ThemeRiver
class ThemeRiver(
# 初始化配置项,参考 `global_options.InitOpts`
init_opts: opts.InitOpts = opts.InitOpts()
)
func pyecharts.charts.ThemeRiver.add
def add(
# 系列名称,用于 tooltip 的显示,legend 的图例筛选。
series_name: Sequence,
# 系列数据项
data: Sequence,
# 是否选中图例
is_selected: bool = True,
# 标签配置项,参考 `series_options.LabelOpts`
label_opts: Union[opts.LabelOpts, dict] = opts.LabelOpts(),
# 提示框组件配置项,参考 `series_options.TooltipOpts`
tooltip_opts: Union[opts.TooltipOpts, dict, None] = None,
# 单轴组件配置项,参考 `global_options.SingleAxisOpts`
singleaxis_opts: Union[opts.SingleAxisOpts, dict] = opts.SingleAxisOpts(),
):