antvis / antvis/G2Plot

🤔 [QUESTION] 折线图如何不断开

Open
#3,606 1 comment 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

我的data如下
```js
[
{
time: '0', // xField
value: 7, // yField
category: '低谷' // seriesField
},
{
time: '1',
value: 4,
category: '低谷'
},
{
time: '2',
value: 2,
category: '高峰'
},
{
time: '3',
value: 10,
category: '高峰'
}
]
```
得到的折线图如下

![image](https://github.com/antvis/G2Plot/assets/38856879/3e6b2c56-c9db-4873-b2d0-1abf165df100)
我想让这一块连起来,不断开,该怎么做(不得改动data)

![image](https://github.com/antvis/G2Plot/assets/38856879/ac33c862-efad-4898-92b0-0cb6816e2d16)

Contributor guide

Open the contributing guide

Research direction

Start with the data and the two attached images in issue #3606, then review the project's documented line-chart options for a way to preserve continuity without changing the data. Done means identifying whether an existing configuration supports the requested connected line and documenting the applicable usage or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.