Skip to content

Commit 3ece64f

Browse files
authored
Merge pull request #285 from iteratec/feature/timeseries-points-and-tooltip
Feature/timeseries points and tooltip
2 parents f7c8d15 + f98b6a2 commit 3ece64f

File tree

2 files changed

+332
-90
lines changed

2 files changed

+332
-90
lines changed

frontend/src/app/modules/time-series/components/time-series-line-chart/time-series-line-chart.component.scss

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,60 @@
22

33
osm-time-series-line-chart {
44
visibility: hidden;
5-
}
65

7-
#time-series-chart-drawing-area {
8-
.axis {
9-
.domain {
10-
display: none;
6+
#marker-tooltip {
7+
position: absolute;
8+
text-align: left;
9+
font: 10pt sans-serif;
10+
color: white;
11+
background: rgba(0, 0, 0, 0.7);
12+
border: 1px solid rgba(0, 0, 0, 0.4);
13+
border-radius: 3px;
14+
pointer-events: none;
15+
16+
tr.active {
17+
background: rgba(255, 255, 255, 0.75);
18+
color: black;
1119
}
1220

13-
line {
14-
stroke: $color-contour-medium;
21+
td {
22+
padding: 0.2em 0.75em 0.2em 0.75em;
23+
24+
i {
25+
padding-right: 5px;
26+
}
27+
}
28+
}
29+
30+
#time-series-chart-drawing-area {
31+
.axis {
32+
.domain {
33+
display: none;
34+
}
35+
36+
line {
37+
stroke: $color-contour-medium;
38+
}
39+
40+
text {
41+
fill: $color-text-light;
42+
}
43+
44+
.description {
45+
font-size: 14px;
46+
fill: $color-text-light;
47+
}
1548
}
1649

17-
text {
18-
fill: $color-text-light;
50+
.marker-line {
51+
stroke: $color-contour-medium;
52+
stroke-width: 1px;
1953
}
2054

21-
.description {
22-
font-size: 14px;
23-
fill: $color-text-light;
55+
circle.dot {
56+
stroke-width: 2px;
57+
fill: white;
2458
}
59+
2560
}
2661
}

0 commit comments

Comments
 (0)