Skip to content

Make Use Cases grid adaptive based on item count & Unify G6 chart title styles with G2 and improve examples#404

Merged
hustcc merged 7 commits intoaifrom
fix_site
Apr 27, 2026
Merged

Make Use Cases grid adaptive based on item count & Unify G6 chart title styles with G2 and improve examples#404
hustcc merged 7 commits intoaifrom
fix_site

Conversation

@q32757468
Copy link
Copy Markdown
Member

@q32757468 q32757468 commented Apr 27, 2026

  • 修复Use Case 的排布问题
  • api配置表格添加类型说明
  • gallery 中的示例图表优化,以适应小图表的展示场景,统一显示标题
  • 统一G6图表的标题显示效果,字体、字重、padding行为等,统一和G2的体验

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 27, 2026

⚠️ No Changeset found

Latest commit: 6b3dde4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

q32757468 and others added 5 commits April 27, 2026 18:34
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tail pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add missing titles to 11 gallery examples (scatter, radar, funnel, venn,
  violin, flow-diagram, network-graph, organization-chart, indented-tree,
  mindmap, fishbone-diagram)
- Add missing title to waterfall-chart gallery example
- Shorten existing long titles (line, bar, column, area, histogram, treemap, boxplot)
- Shorten long axis titles (axisYTitle) across line, area, column, dual-axes,
  violin, bar charts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Align G6 title font to sans-serif, color to #000 (light) / #e0e6ed (dark)
- Add top padding of 46 when G6 chart has a title
- Normalize all G6 chart default padding to 20
- Update organization-chart gallery example with simpler text and 3-level data

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 27, 2026

🎊 PR Preview d20f67c has been successfully built and deployed to https://antvis-GPT-Vis-preview-pr-404.surge.sh

🕐 Build time: 0.012s

🤖 By surge-preview

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the example data for all chart types, introducing a standardized valueType field and simplifying property descriptions. It also updates the chart documentation page with a dynamic grid for use cases and a new Required column in the properties table. Additionally, visualization components were updated to support titles with improved padding and font styling. Review feedback focuses on correcting typos in the boxplot example data and improving font family consistency by using constants or more robust font stacks for chart titles.

Comment thread site/app/examples/examplesData/boxplot.ts Outdated
Comment thread site/app/examples/examplesData/boxplot.ts Outdated
Comment thread src/vis/fishbone-diagram/index.ts
Comment thread src/vis/flow-diagram/index.ts
Comment thread src/vis/indented-tree/index.ts
Comment thread src/vis/mindmap/index.ts
Comment thread src/vis/network-graph/index.ts
Comment thread src/vis/organization-chart/index.ts
q32757468 and others added 2 commits April 27, 2026 18:38
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@hustcc hustcc merged commit 58aee80 into ai Apr 27, 2026
5 checks passed
@hustcc hustcc deleted the fix_site branch April 27, 2026 10:43
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