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(line): line area support isStack options #1705

Merged
merged 5 commits into from
Oct 13, 2020
Merged

Conversation

hustcc
Copy link
Member

@hustcc hustcc commented Oct 12, 2020

  • 折线图支持 isStack
  • 面积图支持 isStack
  • 双轴图 line 支持 isStack
  • 双轴图 legend: false 出现的 异常
  • 修复 lint 的 warning

@auto-add-label auto-add-label bot added the enhancement New feature or request label Oct 12, 2020
@hustcc hustcc requested review from visiky and lessmost October 12, 2020 05:02
@github-actions
Copy link
Contributor

github-actions bot commented Oct 12, 2020

🎊 PR Preview 7d80cc2 has been successfully built and deployed to https://antvis-G2Plot-preview-pr-1705.surge.sh

🕐 Build time: 546.492s

🤖 By surge-preview

@lxfu1
Copy link
Member

lxfu1 commented Oct 12, 2020

isStack Line 长什么样?

@hustcc
Copy link
Member Author

hustcc commented Oct 13, 2020

isStack Line 长什么样?

就是数值上是高度叠加的,可以参考面积图,去掉填充颜色的意思。

image

双轴图中生效:

image

@lgtm-com
Copy link

lgtm-com bot commented Oct 13, 2020

This pull request fixes 2 alerts when merging 0e618a9 into 9156861 - view on LGTM.com

fixed alerts:

  • 2 for Unused variable, import, function or class

package.json Show resolved Hide resolved
@hustcc hustcc merged commit 7d80cc2 into master Oct 13, 2020
@hustcc hustcc deleted the feat-line-area-stack branch October 13, 2020 02:29
@@ -41,6 +41,13 @@ export function drawSingleGeometry<O extends { xField: string; yField: string; g
},
})
);

// 处理 isStack
if (isStack) {
Copy link
Member

Choose a reason for hiding this comment

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

是不是直接调 adjust adaptor就好(突然在想双轴图的柱子有没有分组)

Copy link
Member Author

Choose a reason for hiding this comment

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

现在是 adaptor/geometry 中的 interval 有处理 adjust,但是 line 没有处理 adjust。这个点是需要重构掉的。

src/plots/line/adaptor.ts Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants