antvis/G2

Minimum interval size #3033

sroze posted onGitHub

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

https://g2.antv.vision/en/examples/bar/basic#time-bar

Steps to reproduce

At the moment, when using intervals (like in this example: https://g2.antv.vision/en/examples/bar/basic#time-bar), if the time window is relatively large and the intervals fairly short, they are not displayed on the chart at all.

To see this problem in action, change the first line of the example to be the following and you won't see the task0, task1 & task7 intervals: { task: 'task0', startTime: '2018-04-10 01:17:12', endTime: '2018-04-10 01:19:10', status: 0 },

We should probably have the ability to configure the minimum visible width of an interval.

Environment Info
g2 4.0.15
System OSX Big Sur
Browser Chrome 86.0.4240.198 (Official Build) (x86_64)

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


Fund this Issue

$0.00
Funded

Pull requests