aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/Chart.scss
blob: 41ce637acf21cd7a523ce5a6a613b0cafdf10139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@import '../../../global/globalCssVariables.module.scss';
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    margin-top: 30px;
    overflow-y: visible;

    .graph {
        overflow: visible;
    }
    .graph-title {
        align-items: center;
        font-size: larger;
        display: flex;
        flex-direction: row;
        margin-top: -20px;
        margin-bottom: -20px;
    }
    .asHistogram-checkBox {
        align-items: left;
        align-self: left;
        align-content: left;
        justify-content: flex-end;
        float: left;
        left: 0;
        position: relative;
        margin-bottom: -35px;
    }
    .selected-data {
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: row;
        margin: 10px;
        margin-top: -25px;
        margin-bottom: 5px;
    }
    .slice {
        &.hover {
            stroke: black;
            stroke-width: 2px;
        }
    }

    .histogram-bar {
        outline: thin solid black;
        &.hover {
            outline: 3px solid black;
            outline-offset: -3px;
        }
    }

    .tooltip {
        // make the height width bigger
        width: fit-content;
        height: fit-content;
    }

    .hoverHighlight-selected,
    .selected {
        // change the color of the circle element to be red
        fill: transparent;
        outline: red solid 2px;
        border-radius: 100%;
        position: absolute;
        transform-box: fill-box;
        transform-origin: center;
    }
    .hoverHighlight {
        fill: transparent;
        outline: black solid 1px;
        border-radius: 100%;
    }
    .hoverHighlight-selected {
        fill: transparent;
        scale: 1;
        outline: black solid 1px;
        border-radius: 100%;
    }
    .datapoint {
        fill: black;
    }
    .brushed {
        // change the color of the circle element to be red
        fill: red;
    }
}
.tableBox {
    display: flex;
    flex-direction: column;
    cursor: default;
    height: calc(100% - 40px); // bcz: hack 40px is the size of the button rows
    .tableBox-container {
        overflow: scroll;
        margin: 5px;
        margin-left: 25px;
        margin-right: 10px;
        margin-bottom: 0;
        .tableBox-table {
            height: 100%;
            width: 100%;
            .tableBox-row {
                cursor: pointer;
                .tableBox-cell {
                    text-overflow: ellipsis;
                    width: 100%;
                    white-space: pre;
                    max-width: 150;
                    overflow: hidden;
                    margin-left: 2px;
                }
            }
        }
        tr td {
            height: $DATA_VIZ_TABLE_ROW_HEIGHT !important; // bcz: hack.  you can't set a <tr> height directly, but you can set the height of all of it's <td>s.  So this is the height of a tableBox row.
            padding: 0 !important;
            vertical-align: middle !important;
        }
    }
}
.selectAll-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 5px;
    margin-right: 10px;
    float: right;
}