Skip to content

feat: add barGap option for histogram chart#3967

Merged
xiaoluoHe merged 7 commits intoVisActor:developfrom
LonelySnowman:feat-histogram-bar-padding
May 29, 2025
Merged

feat: add barGap option for histogram chart#3967
xiaoluoHe merged 7 commits intoVisActor:developfrom
LonelySnowman:feat-histogram-bar-padding

Conversation

@LonelySnowman
Copy link
Copy Markdown
Contributor

@LonelySnowman LonelySnowman commented May 15, 2025

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

Close #2629

🔗 Related PR link

None

🐞 Bugserver case id

None

💡 Background and solution

Add barGap option for histogram chart.

📝 Changelog

Language Changelog
🇺🇸 English Add barGap option for histogram chart
🇨🇳 Chinese 为直方图添加 barGap 属性

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

@LonelySnowman
Copy link
Copy Markdown
Contributor Author

#3048 之前 PR 的 badcase 都测试过。

X 轴反向

image

添加最小宽度保护

image

水平堆叠直方图

image

基础直方图

image

@xuefei1313
Copy link
Copy Markdown
Contributor

参考一下之前一个学生的pr,里面提到了一些case
#3048
主要验证以下几个场景:
轴反转
最小宽度
还有参数名称,改为 barGap 吧

@LonelySnowman
Copy link
Copy Markdown
Contributor Author

@xuefei1313 轴反转 最小宽度 这两个 case 我验证过了,上面的评论有截图。参数名称从 barPadding 改为了 barGap。CI 流程 Bug Server CI / build 的报错应该不是我这个 PR 引入的,size limit 的 CI 我感觉要调高一点。

Comment thread packages/vchart/src/series/bar/interface.ts
@xiaoluoHe
Copy link
Copy Markdown
Contributor

跑一下 rush change,补充一下发布日志

Comment thread packages/vchart/src/series/bar/bar.ts Outdated
Comment thread docs/assets/option/en/chart/histogram.md
@github-actions github-actions Bot added the chore label May 28, 2025
Comment thread common/changes/@visactor/vchart/feat-histogram-bar-padding_2025-05-28-12-01.json Outdated
@LonelySnowman LonelySnowman changed the title feat: linear bar add barpadding option feat: add barGap option for histogram chart May 29, 2025
@xiaoluoHe xiaoluoHe merged commit eac8c45 into VisActor:develop May 29, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] histogram support barPadding

3 participants