fix segment timeline in FireFox (#11701)

This commit is contained in:
Vadim Ogievetsky 2021-09-13 20:45:18 -07:00 committed by GitHub
parent ee009ec18e
commit 779fe8e6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ export class BarGroup extends React.Component<BarGroupProps> {
return dataToRender.map((entry: BarUnitData, i: number) => {
const y0 = yScale(entry.y0 || 0) || 0;
const x = xScale(new Date(entry.x + 'Z'));
const x = xScale(new Date(entry.x + 'T00:00:00Z'));
const y = yScale((entry.y0 || 0) + entry.y) || 0;
const height = Math.max(y0 - y, 0);
const barInfo: HoveredBarInfo = {