pyechats 表格属性

def table_base() -> Table:
    table = Table()
    headers = ["City name", "Area", "Population", "Annual Rainfall"]
    rows = [
        ["Brisbane", 5905, 1857594, 1146.4],
        ["Adelaide", 1295, 1158259, 600.5],
        ["Darwin", 112, 120900, 1714.7],
        ["Hobart", 1357, 205556, 619.5],
        ["Sydney", 2058, 4336374, 1214.8],
        ["Melbourne", 1566, 3806092, 646.9],
        ["Perth", 5386, 1554769, 869.4],
    ]
    table.add(headers, rows).set_global_opts(
        title_opts=ComponentTitleOpts(title="Table-我是主标题",title_style={"style": "font-size: 18px; font-weight:bold;"},subtitle_style= {"style": "font-size: 10px;"})
    )
    print (dir(table))
    table.title_opts={"style": "font-size:59px; font-weight:bold;"}
    return table
原文地址:https://www.cnblogs.com/hzcya1995/p/13348642.html