Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gi-sdk): register service and handle dataset schema #545

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Conversation

yvonneyx
Copy link
Contributor

  • 支持服务注册后使用
  • 处理本地数据配置与远程数据配置

使用示例:

  • 本地数据
const data = { nodes: [ // ...] ,}

const config = {
    // ...
    dataset: {
          metadata: {
              name: '本地测试数据',
          },
          type: 'local',
          data: data,
    }
}
  • 远程数据
const config = {
    // ...
      dataset: {
          metadata: {
              name: '远程测试数据',
          },
          type: 'remote',
          serviceType: 'FetchData',
          properties: {
              url: 'https://assets.antv.antgroup.com/g6/cluster.json',
          },
  },
}
image

@yvonneyx yvonneyx merged commit 005d0c8 into v3 Jul 30, 2024
@yvonneyx yvonneyx deleted the feat/services branch July 30, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants