Skip to content

Commit

Permalink
Make cross-hair thinner #3827
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMehl authored and IhsenBouallegue committed Dec 20, 2024
1 parent a6c1f57 commit 734fa2b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class MetricColorRangeDiagramComponent implements OnChanges {
this.drawLabels(group)
this.drawAreas(group, x)
this.drawLine(group)
this.addCross(group, x, y)
this.addCrossHair(group, x, y)
}

private initializeDiagramDimesions() {
Expand Down Expand Up @@ -299,7 +299,7 @@ export class MetricColorRangeDiagramComponent implements OnChanges {
}
}

private addCross(group: GroupElement, x: Scale, y: Scale) {
private addCrossHair(group: GroupElement, x: Scale, y: Scale) {
const tooltip: TextElement = group
.append("text")
.attr("class", "cross-tooltip")
Expand All @@ -311,22 +311,22 @@ export class MetricColorRangeDiagramComponent implements OnChanges {
.append("line")
.attr("class", "dashed-vertical-line")
.attr("stroke", "#000")
.attr("stroke-width", "1px")
.attr("stroke-width", "0.7px")
.attr("stroke-dasharray", "4")
.style("display", "none")

const straightVerticalLine: LineElement = group
.append("line")
.attr("class", "straight-vertical-line")
.attr("stroke", "#000")
.attr("stroke-width", "1px")
.attr("stroke-width", "0.7px")
.style("display", "none")

const horizontalLine: LineElement = group
.append("line")
.attr("class", "horizontal-line")
.attr("stroke", "#000")
.attr("stroke-width", "1px")
.attr("stroke-width", "0.7px")
.style("display", "none")

const rectangle: RectElement = group
Expand Down

0 comments on commit 734fa2b

Please sign in to comment.