mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Event annotation should have min width (#4083)
This commit is contained in:
parent
7cd9b85831
commit
86f9087ea2
@ -683,8 +683,8 @@ function nvd3Vis(slice, payload) {
|
||||
x: d => Math.min(xScale(new Date(d[e.timeColumn])),
|
||||
xScale(new Date(d[e.intervalEndColumn]))),
|
||||
y: 0,
|
||||
width: d => Math.abs(xScale(new Date(d[e.intervalEndColumn])) -
|
||||
xScale(new Date(d[e.timeColumn]))),
|
||||
width: d => Math.max(Math.abs(xScale(new Date(d[e.intervalEndColumn])) -
|
||||
xScale(new Date(d[e.timeColumn]))), 1),
|
||||
height: annotationHeight,
|
||||
})
|
||||
.attr('class', `${e.opacity} ${e.style}`)
|
||||
|
Loading…
Reference in New Issue
Block a user