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

折线图怎么连接空数据 #171

Closed
hyelimwu opened this issue Jun 25, 2018 · 3 comments
Closed

折线图怎么连接空数据 #171

hyelimwu opened this issue Jun 25, 2018 · 3 comments
Assignees
Labels

Comments

@hyelimwu
Copy link

  • F2 Version:
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

1529913097 1

var data = [{
  day: '周一',
  value: 300
}, {
  day: '周二',
  value: 400
}, {
  day: '周三',
  value: null
}, {
  day: '周四',
  value: 500
}, {
  day: '周五',
  value: 490
}, {
  day: '周六',
  value: 600
}, {
  day: '周日',
  value: 900
}];
@simaQ simaQ self-assigned this Jun 25, 2018
@simaQ simaQ added the feature label Jun 25, 2018
@simaQ
Copy link
Contributor

simaQ commented Jun 25, 2018

这个需要开放配置参数。我给你加下

@dxq613 dxq613 closed this as completed in 8729e8c Jun 26, 2018
dxq613 added a commit that referenced this issue Jun 26, 2018
feat: add connectNulls for geometry to connect null points. Closed #171.
@simaQ
Copy link
Contributor

simaQ commented Jun 26, 2018

下载 @antv/f2@3.1.13-beta.1 版本,新添加 connectNulls 属性,使用方式

chart.line({
  connectNulls: true // 连接空数据, 默认为 false
}).position()

@hyelimwu

@hyelimwu
Copy link
Author

赞!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants