mirror of https://github.com/apache/druid.git
fix segment timeline in FireFox (#11701)
This commit is contained in:
parent
ee009ec18e
commit
779fe8e6ad
|
@ -52,7 +52,7 @@ export class BarGroup extends React.Component<BarGroupProps> {
|
||||||
|
|
||||||
return dataToRender.map((entry: BarUnitData, i: number) => {
|
return dataToRender.map((entry: BarUnitData, i: number) => {
|
||||||
const y0 = yScale(entry.y0 || 0) || 0;
|
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 y = yScale((entry.y0 || 0) + entry.y) || 0;
|
||||||
const height = Math.max(y0 - y, 0);
|
const height = Math.max(y0 - y, 0);
|
||||||
const barInfo: HoveredBarInfo = {
|
const barInfo: HoveredBarInfo = {
|
||||||
|
|
Loading…
Reference in New Issue