BigQuant使用文档

Table - 表格图

由qxiao创建,最终由ydong 被浏览 70 用户

接口

Table(表格图)的 _type=”table”

ComponentTitleOpts 用于表格的标题以及副标题的配置,配置字段:

class ComponentTitleOpts(

# 主标题,支持换行
title: str = "",

# 副标题,支持 \n 换行
subtitle: str = "",

# 主标题 CSS 样式
title_style: Optional[dict] = None,

# 副标题 CSS 样式
subtitle_style: Optional[dict] = None,

)
bigcharts.Chart(
    ... 其他参数
    # 【设置图表类型】图表类型,具体参考各类型图表
    type_ = "table",
    
    # 通过y参数,表示表格需要展示那几列
    y = ["col1", "col2"]
)

示例代码

https://bigquant.com/codeshare/317b8608-1a7c-4121-a02e-c3133be533ba

\