Skip to content

Commit 76c6248

Browse files
author
Michael Mrowetz
committed
#167 fix marker lable in Safari and IE
1 parent b15feb4 commit 76c6248

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/css-raw/perf-cascade.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
.water-fall-chart .line-end.active,
2323
.water-fall-chart .line-start.active {display: block;}
2424

25-
.water-fall-chart .mark-holder text {writing-mode:vertical-lr;}
26-
2725
.left-fixed-holder .label-full-bg {fill: #fff; opacity: 0.9;}
2826

2927
.time-scale line {stroke:#0cc; stroke-width:1;}

src/ts/waterfall/sub-components/svg-marks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export function createMarks(context: Context, marks: Mark[]) {
2222
let lineHolder = svg.newG("line-holder");
2323
let lineLabelHolder = svg.newG("line-label-holder");
2424
let lineLabel = svg.newTextEl(mark.name, { x: x + "%", y: diagramHeight + 25 });
25+
lineLabel.setAttribute("writing-mode", "tb");
2526
let lineRect: SVGGElement;
2627
mark.x = x;
2728

0 commit comments

Comments
 (0)