Skip to content

Commit e29a7b0

Browse files
committed
Removed some todo comments, which aren't necessary
1 parent 4a575f0 commit e29a7b0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

frontend/src/app/modules/time-series/services/line-chart.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,14 +545,12 @@ export class LineChartService {
545545
}
546546

547547
private showTooltip(nearestDot: D3Selection<any, unknown, null, undefined>, visibleDots: D3Selection<D3BaseType, {}, HTMLElement, any>, highlightedDate: Date) {
548-
// TODO: Styling of the tooltip needs some love (see frontend/src/app/modules/time-series/components/time-series-line-chart/time-series-line-chart.component.scss)
549548
const tooltip = d3Select('#marker-tooltip');
550549
const svg = d3Select('#time-series-chart');
551550

552551
const tooltipText = this.generateTooltipText(nearestDot, visibleDots, highlightedDate);
553552
tooltip.html(tooltipText.outerHTML);
554553

555-
// TODO: Positioning of the tooltip must be left or right of the box, depending on the space left
556554
const tooltipWidth: number = (<HTMLDivElement>tooltip.node()).getBoundingClientRect().width;
557555
const nearestDotXPosition: number = parseFloat(nearestDot.attr('cx'));
558556

0 commit comments

Comments
 (0)