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

fix: interval style #1320

Merged
merged 2 commits into from
Dec 20, 2021
Merged

fix: interval style #1320

merged 2 commits into from
Dec 20, 2021

Conversation

El-Chiang
Copy link
Contributor

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change
  • 修复 interval style 不生效问题

@@ -102,7 +102,6 @@ export default (Views) => {
coord={coord}
records={records}
shape={shape}
style={style}
Copy link
Member

Choose a reason for hiding this comment

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

这个是要的吧?

Copy link
Member

Choose a reason for hiding this comment

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

哦,想起来了,统一处理到shape 里面去了

@@ -155,8 +155,8 @@ export default class TooltipView extends Component {
...defaultStyle.itemMarkerStyle,
};

const xTipText = xScale.getText(records[0][xField]);
const yTipText = yScale.getText(records[0][yField]);
const xTipText = xScale.getText(records[0].origin[xField]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

这里因为 interval 修改过 xField value所以会有一点问题, 需要从 origin 上去获取,一并修改了

@zengyue zengyue merged commit 9520876 into v4.0.x Dec 20, 2021
@zengyue zengyue deleted the fix/interval-style branch December 20, 2021 05:27
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