Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

将 G2 v5 坐标轴文档的增量内容同步到 Ant Design Charts,包括新增配置项、属性说明和示例。仅同步配置选项,保持现有代码结构(使用 xField/yField 而非 encode)。

Changes

Chinese Documentation (axis.zh.md)

  • Added 40+ missing properties across all axis components:
    • Title: titleFill, titleTextAlign, titleLineHeight, titleDx, titleDy
    • Line: shadow properties (lineShadowColor, lineShadowBlur, etc.), lineCursor
    • Tick: tickCount, tickMethod, shadow properties, tickCursor
    • Label: labelRender, labelTextAlign, labelTextBaseline, shadow properties, labelCursor, labelDx, labelDy
    • Grid: gridOpacity, shadow properties, gridCursor
  • Added breaks configuration for axis breaks (discontinuous ranges)
  • Added D3-format documentation with syntax guide and examples
  • Enhanced configuration examples demonstrating new properties

English Documentation (axis.en.md)

  • Added comprehensive overview and step-by-step usage guide
  • Added complete property tables for title, line, tick, label, grid, breaks, animate
  • Added working React component example
  • Maintained consistent structure with Chinese version

Code Structure Preserved

All examples use Ant Design Charts pattern:

{
  xField: 'month',
  yField: 'sales',
  axis: {
    x: { labelFormatter: (d) => `2025-${d}` },
    y: { tickCount: 5 }
  }
}

Not G2 pattern (no encode used).

Original prompt

http://github.com/antvis/g2/blob/v5/site/docs/manual/component/axis.*.md 目录下的文档内容同步到 https://github.com/ant-design/ant-design-charts/blob/master/site/docs/options/plots/axis.*.md 文件中。

同步要求:

  1. 不能全量覆盖,同步增量内容即可
  2. 示例代码仅同步配置(options),代码结构不要改动

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@coderabbitai
Copy link

coderabbitai bot commented Jan 6, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Sync axis documentation content incrementally Sync G2 v5 axis documentation to Ant Design Charts Jan 6, 2026
Copilot AI requested a review from lxfu1 January 6, 2026 09:10
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 7, 2026
@lxfu1 lxfu1 marked this pull request as ready for review January 7, 2026 07:08
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jan 7, 2026
@lxfu1 lxfu1 merged commit 65f458b into master Jan 7, 2026
8 checks passed
@lxfu1 lxfu1 deleted the copilot/sync-axis-docs-content branch January 7, 2026 07:08
@dosubot dosubot bot added the documentation 📖 Improvements or additions to documentation label Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📖 Improvements or additions to documentation lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants