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(area): add plot area #1361

Merged
merged 3 commits into from
Jul 30, 2020
Merged

feat(area): add plot area #1361

merged 3 commits into from
Jul 30, 2020

Conversation

hustcc
Copy link
Member

@hustcc hustcc commented Jul 30, 2020

  • 面积图
  • adaptor 一些是复用 line,一些的自己写。

@auto-add-label auto-add-label bot added the enhancement New feature or request label Jul 30, 2020
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

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

Could you please add tests to make sure this change works as expected?

chart.data(data);
const geometry = chart.area().position(`${xField}*${yField}`);

if (seriesField) {
Copy link
Member

Choose a reason for hiding this comment

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

这个 seriesField 在其他图形中叫法可能不一致,有 colorField/stackField,

我倾向 colorField,或者同时支持 colorField/stackField/seriesField,几个配置同时支持🌚

Copy link
Member Author

Choose a reason for hiding this comment

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

这个要在发布版本之前确定一个标准了,或者我去问下米法,当初的命名规范是什么?

src/plots/area/adaptor.ts Outdated Show resolved Hide resolved
src/plots/area/adaptor.ts Outdated Show resolved Hide resolved
@visiky visiky merged commit a4a3e41 into v2 Jul 30, 2020
@visiky visiky deleted the feat-area branch July 30, 2020 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR: merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants