G2 icon indicating copy to clipboard operation
G2 copied to clipboard

[feature] linear 维度支持跳过指定区域

Open Airkro opened this issue 4 years ago • 1 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

减少了多折线(复用Y轴)图中无用的空白区域面积,例如下图的橙色部分

image

What does the proposed API look like?

{
  type: 'linear',
  skip: value => value >=80 && value< 100
}

Airkro avatar Jul 29 '20 06:07 Airkro

很好的 issue,分段 scale,目前暂时没有,规划中,但是优先级并没有非常高!不过,你这边可以先尝试用 pow scale + yaxis label formatter 来减少中间的空白。

hustcc avatar Aug 12 '20 05:08 hustcc