Skip to content

Conversation

ComPleHN
Copy link
Contributor

@ComPleHN ComPleHN commented Jun 10, 2025

  • 增加table组件适应
  • 修改部分类型定义

Description

加入了Table组件适应,使用示例:

from swanlab import echarts

table = echarts.Table()

headers = ["NO", "Product", "Count"]
rows = [
    [2, "A", 259],
    [3, "B", 123],
    [4, "C", 300],
    [5, "D", 290],
    [6, "E", 1145],
]
table.add(headers, rows)

c1 = table

import swanlab

swanlab.init(
    project="echarts-test",
    experiment_name="table",
    public=True,
)

swanlab.log({"Table - Table_base": c1})

Additional

本次更新汇总了在pyecharts-gellary中跑通的图表类,新建一个单独的echarts模块,并将pyechartsoption内置在里面:

# all supported echarts classes are here
from swanlab import echarts
# same to pyecharts.options
opts = echarts.options

ComPleHN and others added 4 commits June 11, 2025 16:01
增加table组件适应
增加对于Echarts/Table的测试
@SAKURA-CAT SAKURA-CAT force-pushed the feat/echarts-component-sdk branch from 841e128 to 4108ff3 Compare June 11, 2025 08:01
@SAKURA-CAT SAKURA-CAT requested a review from Zeyi-Lin June 11, 2025 09:49
@SAKURA-CAT SAKURA-CAT added the 💪 enhancement New feature or request label Jun 11, 2025
@SAKURA-CAT
Copy link
Member

Done! @Zeyi-Lin now you can check it

@Zeyi-Lin Zeyi-Lin merged commit 1547298 into SwanHubX:main Jun 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants