@carbon/charts 1.11.21 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +3 -3
- package/dist/{angle-utils-6b17e95b.mjs → angle-utils-7844066d.mjs} +69 -57
- package/dist/{angle-utils-6b17e95b.mjs.map → angle-utils-7844066d.mjs.map} +1 -1
- package/dist/{choropleth-17b85d55.mjs → choropleth-d4b2bac9.mjs} +2 -2
- package/dist/{choropleth-17b85d55.mjs.map → choropleth-d4b2bac9.mjs.map} +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/demo/index.mjs +227 -244
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +4499 -692
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/package-versions.d.ts +0 -2
- package/dist/{index-b0e98af9.mjs → index-0bab3ec3.mjs} +2 -2
- package/dist/{index-b0e98af9.mjs.map → index-0bab3ec3.mjs.map} +1 -1
- package/dist/index.mjs +5 -5
- package/dist/interfaces/charts.d.ts +6 -0
- package/dist/model/index.mjs +21 -13
- package/dist/model/index.mjs.map +1 -1
- package/dist/services/index.mjs +2 -2
- package/dist/styles.css +4249 -781
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/umd/bundle.umd.js +3 -3
- package/dist/umd/bundle.umd.js.map +1 -1
- package/package.json +21 -21
- package/scss/_chart-holder.scss +18 -17
- package/scss/_chart-wrapper.scss +6 -0
- package/scss/_color-palette.scss +2 -2
- package/scss/_colors.scss +26 -25
- package/scss/_globals.scss +8 -0
- package/scss/_tokens.scss +50 -50
- package/scss/_transition.scss +4 -0
- package/scss/_type.scss +14 -14
- package/scss/components/_axis.scss +12 -11
- package/scss/components/_callouts.scss +4 -3
- package/scss/components/_color-legend.scss +4 -4
- package/scss/components/_grid-brush.scss +7 -5
- package/scss/components/_grid.scss +9 -8
- package/scss/components/_highlights.scss +6 -3
- package/scss/components/_layout.scss +5 -3
- package/scss/components/_legend.scss +14 -11
- package/scss/components/_meter-title.scss +11 -9
- package/scss/components/_modal.scss +14 -11
- package/scss/components/_ruler.scss +6 -3
- package/scss/components/_skeleton-lines.scss +9 -6
- package/scss/components/_skeleton.scss +9 -6
- package/scss/components/_threshold.scss +12 -11
- package/scss/components/_title.scss +5 -5
- package/scss/components/_toolbar.scss +6 -6
- package/scss/components/_tooltip.scss +12 -11
- package/scss/components/_zero-line.scss +4 -3
- package/scss/components/_zoom-bar.scss +16 -14
- package/scss/components/diagrams/_card-node.scss +74 -74
- package/scss/components/diagrams/_edge.scss +46 -49
- package/scss/components/diagrams/_marker.scss +4 -5
- package/scss/components/diagrams/_shape-node.scss +72 -73
- package/scss/components/diagrams/index.scss +4 -4
- package/scss/components/index.scss +20 -20
- package/scss/demos.scss +1 -0
- package/scss/graphs/_alluvial.scss +7 -6
- package/scss/graphs/_area.scss +4 -2
- package/scss/graphs/_bubble.scss +6 -5
- package/scss/graphs/_bullet.scss +11 -13
- package/scss/graphs/_choropleth.scss +7 -7
- package/scss/graphs/_circle-pack.scss +7 -6
- package/scss/graphs/_donut.scss +3 -1
- package/scss/graphs/_gauge.scss +7 -6
- package/scss/graphs/_heatmap.scss +6 -6
- package/scss/graphs/_line.scss +6 -4
- package/scss/graphs/_lollipop.scss +3 -1
- package/scss/graphs/_meter.scss +11 -10
- package/scss/graphs/_pie.scss +3 -1
- package/scss/graphs/_radar.scss +6 -5
- package/scss/graphs/_scatter-stacked.scss +4 -3
- package/scss/graphs/_scatter.scss +6 -5
- package/scss/graphs/_tree.scss +11 -9
- package/scss/graphs/_treemap.scss +3 -1
- package/scss/graphs/_wordcloud.scss +3 -1
- package/scss/graphs/index.scss +19 -19
- package/scss/index.scss +10 -31
- package/styles.css +4249 -781
- package/styles.min.css +1 -1
- package/scss/components/_edge.scss +0 -65
- package/scss/components/_marker.scss +0 -7
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
3
3
|
|
|
4
|
-
.#{
|
|
4
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--axes {
|
|
5
|
+
font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
|
|
5
6
|
overflow: visible;
|
|
6
7
|
|
|
7
8
|
g.axis {
|
|
@@ -18,19 +19,19 @@
|
|
|
18
19
|
g.tick-hover:hover,
|
|
19
20
|
g.tick-hover:focus {
|
|
20
21
|
rect.axis-holder {
|
|
21
|
-
fill:
|
|
22
|
-
stroke:
|
|
22
|
+
fill: theme.$layer-selected-inverse;
|
|
23
|
+
stroke: theme.$layer-selected-inverse;
|
|
23
24
|
stroke-width: 2px;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
text {
|
|
27
|
-
fill:
|
|
28
|
+
fill: theme.$layer-selected;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
g.tick text {
|
|
32
|
-
fill:
|
|
33
|
-
font-family: var(--#{
|
|
33
|
+
fill: theme.$text-secondary;
|
|
34
|
+
font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
g.tick line {
|
|
@@ -38,15 +39,15 @@
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
path.domain {
|
|
41
|
-
stroke:
|
|
42
|
+
stroke: theme.$border-strong-01;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.axis-title {
|
|
45
|
-
font-family: var(--#{
|
|
46
|
+
font-family: var(--#{globals.$prefix}-charts-font-family);
|
|
46
47
|
// TODO-V11
|
|
47
48
|
// font-weight: font-weight('semibold');
|
|
48
49
|
font-weight: 600;
|
|
49
|
-
fill:
|
|
50
|
+
fill: theme.$text-primary;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
2
3
|
|
|
3
|
-
.#{
|
|
4
|
-
stroke:
|
|
4
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper g.callouts {
|
|
5
|
+
stroke: theme.$text-secondary;
|
|
5
6
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '../tokens';
|
|
3
3
|
|
|
4
|
-
svg.#{
|
|
4
|
+
svg.#{globals.$prefix}--#{globals.$charts-prefix}--color-legend {
|
|
5
5
|
display: flex;
|
|
6
6
|
user-select: none;
|
|
7
7
|
|
|
8
8
|
g.legend-title text {
|
|
9
|
-
fill:
|
|
9
|
+
fill: tokens.$layer-inverse-absolute;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/styles/scss/components/button';
|
|
3
|
+
@use '../globals';
|
|
2
4
|
|
|
3
|
-
.#{
|
|
5
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--grid-brush {
|
|
4
6
|
// disable default d3 brush selection
|
|
5
7
|
g.grid-brush {
|
|
6
8
|
rect.selection {
|
|
@@ -11,10 +13,10 @@
|
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
.#{
|
|
16
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--grid-brush {
|
|
15
17
|
rect.frontSelection {
|
|
16
|
-
fill:
|
|
18
|
+
fill: theme.$layer-accent-01;
|
|
17
19
|
fill-opacity: 0.3;
|
|
18
|
-
stroke:
|
|
20
|
+
stroke: button.$button-tertiary;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '../globals';
|
|
3
|
+
@use '../tokens';
|
|
3
4
|
|
|
4
|
-
.#{
|
|
5
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--grid {
|
|
5
6
|
rect.chart-grid-backdrop {
|
|
6
|
-
fill:
|
|
7
|
+
fill: tokens.$grid-bg;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
rect.chart-grid-backdrop.stroked {
|
|
10
|
-
stroke:
|
|
11
|
+
stroke: theme.$layer-accent-01;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
rect.stroke {
|
|
14
|
-
stroke:
|
|
15
|
+
stroke: theme.$layer-accent-01;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
g.x.grid g.tick,
|
|
@@ -19,12 +20,12 @@
|
|
|
19
20
|
line {
|
|
20
21
|
pointer-events: none;
|
|
21
22
|
stroke-width: 1px;
|
|
22
|
-
stroke:
|
|
23
|
+
stroke: theme.$layer-accent-01;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
&.active line {
|
|
26
27
|
stroke-dasharray: 2px;
|
|
27
|
-
stroke:
|
|
28
|
+
stroke: theme.$focus;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '@carbon/colors';
|
|
3
|
+
|
|
4
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--highlight {
|
|
2
5
|
rect.highlight-bar {
|
|
3
6
|
pointer-events: none;
|
|
4
|
-
fill:
|
|
5
|
-
stroke:
|
|
7
|
+
fill: colors.$magenta-50;
|
|
8
|
+
stroke: colors.$magenta-50;
|
|
6
9
|
}
|
|
7
10
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
@use '../globals';
|
|
2
|
+
|
|
3
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--layout {
|
|
2
4
|
&-row {
|
|
3
5
|
display: flex;
|
|
4
6
|
flex-direction: row;
|
|
@@ -24,11 +26,11 @@
|
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
.#{
|
|
29
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper .layout-child {
|
|
28
30
|
overflow: visible;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
.#{
|
|
33
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper svg.layout-svg-wrapper {
|
|
32
34
|
height: inherit;
|
|
33
35
|
width: inherit;
|
|
34
36
|
overflow: visible;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/colors';
|
|
3
|
+
@use '../globals';
|
|
2
4
|
|
|
3
|
-
div.#{
|
|
5
|
+
div.#{globals.$prefix}--#{globals.$charts-prefix}--legend {
|
|
6
|
+
font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
|
|
4
7
|
display: flex;
|
|
5
8
|
user-select: none;
|
|
6
9
|
-webkit-flex-wrap: wrap;
|
|
@@ -21,7 +24,7 @@ div.#{$prefix}--#{$charts-prefix}--legend {
|
|
|
21
24
|
height: 13px;
|
|
22
25
|
margin-right: 4px;
|
|
23
26
|
border-radius: 2px;
|
|
24
|
-
border: solid 1px
|
|
27
|
+
border: solid 1px theme.$background;
|
|
25
28
|
box-shadow: 0 0 0 2px transparent;
|
|
26
29
|
|
|
27
30
|
@media (forced-colors: active) {
|
|
@@ -29,15 +32,15 @@ div.#{$prefix}--#{$charts-prefix}--legend {
|
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
&:not(.active) {
|
|
32
|
-
border-color:
|
|
33
|
-
background:
|
|
35
|
+
border-color: theme.$text-secondary;
|
|
36
|
+
background: theme.$background;
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
svg {
|
|
37
40
|
display: none;
|
|
38
41
|
vertical-align: text-top;
|
|
39
|
-
fill:
|
|
40
|
-
stroke:
|
|
42
|
+
fill: theme.$background;
|
|
43
|
+
stroke: theme.$background;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -49,7 +52,7 @@ div.#{$prefix}--#{$charts-prefix}--legend {
|
|
|
49
52
|
|
|
50
53
|
p {
|
|
51
54
|
font-size: 12px;
|
|
52
|
-
fill:
|
|
55
|
+
fill: theme.$text-secondary;
|
|
53
56
|
line-height: 1rem;
|
|
54
57
|
}
|
|
55
58
|
}
|
|
@@ -86,11 +89,11 @@ div.#{$prefix}--#{$charts-prefix}--legend {
|
|
|
86
89
|
cursor: pointer;
|
|
87
90
|
|
|
88
91
|
div.checkbox {
|
|
89
|
-
border: solid 1px
|
|
90
|
-
box-shadow: 0 0 0 2px
|
|
92
|
+
border: solid 1px theme.$background;
|
|
93
|
+
box-shadow: 0 0 0 2px colors.$blue-60;
|
|
91
94
|
|
|
92
95
|
&:not(.active) {
|
|
93
|
-
border-color:
|
|
96
|
+
border-color: theme.$text-secondary;
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
}
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
@use '@carbon/
|
|
2
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/colors';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
3
|
+
@use '../globals';
|
|
4
|
+
@use '../tokens';
|
|
3
5
|
|
|
4
|
-
.#{
|
|
6
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--meter-title {
|
|
5
7
|
overflow: visible;
|
|
6
8
|
|
|
7
9
|
text.meter-title,
|
|
8
10
|
text.proportional-meter-title,
|
|
9
11
|
text.proportional-meter-total,
|
|
10
12
|
text.percent-value {
|
|
11
|
-
fill:
|
|
13
|
+
fill: theme.$text-primary;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
g.status-indicator {
|
|
15
17
|
&.status--danger circle.status {
|
|
16
|
-
fill:
|
|
18
|
+
fill: theme.$support-error;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
&.status--warning {
|
|
20
22
|
circle.status {
|
|
21
|
-
fill:
|
|
23
|
+
fill: theme.$support-warning;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
path.innerFill {
|
|
25
|
-
fill:
|
|
27
|
+
fill: colors.$black-100;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
&.status--success circle.status {
|
|
30
|
-
fill:
|
|
32
|
+
fill: theme.$support-success;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
path.innerFill {
|
|
34
|
-
fill:
|
|
36
|
+
fill: tokens.$layer-01-absolute;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '@carbon/styles/scss/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@use '@carbon/styles/scss/components/modal';
|
|
2
|
+
@use '@carbon/styles/scss/components/data-table';
|
|
3
|
+
@use '@carbon/styles/scss/components/button';
|
|
4
|
+
@use '../globals';
|
|
5
|
+
@use '../tokens';
|
|
6
|
+
|
|
7
|
+
.#{globals.$prefix}--chart-holder {
|
|
8
|
+
.#{globals.$prefix}--modal {
|
|
6
9
|
&.is-visible {
|
|
7
10
|
z-index: 99999;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
.#{
|
|
11
|
-
.#{
|
|
13
|
+
.#{globals.$prefix}--modal-container {
|
|
14
|
+
.#{globals.$prefix}--modal-header {
|
|
12
15
|
&__label {
|
|
13
16
|
margin-top: 0;
|
|
14
17
|
margin-bottom: 0;
|
|
@@ -20,10 +23,10 @@
|
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
.#{
|
|
26
|
+
.#{globals.$prefix}--modal-content {
|
|
24
27
|
padding: 0;
|
|
25
28
|
margin-bottom: 0;
|
|
26
|
-
color-scheme:
|
|
29
|
+
color-scheme: tokens.$color-scheme;
|
|
27
30
|
|
|
28
31
|
table {
|
|
29
32
|
position: relative;
|
|
@@ -36,10 +39,10 @@
|
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
|
|
39
|
-
.#{
|
|
42
|
+
.#{globals.$prefix}--modal-footer {
|
|
40
43
|
background-color: transparent;
|
|
41
44
|
|
|
42
|
-
.#{
|
|
45
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}-modal-footer-spacer {
|
|
43
46
|
width: 50%;
|
|
44
47
|
}
|
|
45
48
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '../tokens';
|
|
3
|
+
|
|
4
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--ruler,
|
|
5
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--ruler-binned {
|
|
3
6
|
line.ruler-line {
|
|
4
|
-
stroke:
|
|
7
|
+
stroke: tokens.$layer-inverse-absolute;
|
|
5
8
|
stroke-width: 1px;
|
|
6
9
|
stroke-dasharray: 2;
|
|
7
10
|
pointer-events: none;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/colors';
|
|
3
|
+
@use '../globals';
|
|
4
|
+
@use '../tokens';
|
|
2
5
|
|
|
3
|
-
$lines-bg-color:
|
|
4
|
-
$lines-shimmer-color:
|
|
6
|
+
$lines-bg-color: theme.$layer-accent-01;
|
|
7
|
+
$lines-shimmer-color: colors.$white-0;
|
|
5
8
|
$areas-bg-color: rgba(127, 127, 127, 0.1);
|
|
6
|
-
$areas-shimmer-color: rgba(
|
|
9
|
+
$areas-shimmer-color: rgba(colors.$white-0, 0.15);
|
|
7
10
|
|
|
8
|
-
.#{
|
|
11
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--skeleton-lines {
|
|
9
12
|
// lines
|
|
10
13
|
rect.chart-skeleton-backdrop {
|
|
11
|
-
fill:
|
|
14
|
+
fill: tokens.$grid-bg;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
.shimmer-effect-lines {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/colors';
|
|
3
|
+
@use '../globals';
|
|
4
|
+
@use '../tokens';
|
|
2
5
|
|
|
3
|
-
$lines-bg-color:
|
|
4
|
-
$lines-shimmer-color:
|
|
6
|
+
$lines-bg-color: theme.$layer-accent-01;
|
|
7
|
+
$lines-shimmer-color: colors.$white-0;
|
|
5
8
|
$areas-bg-color: rgba(127, 127, 127, 0.1);
|
|
6
|
-
$areas-shimmer-color: rgba(
|
|
9
|
+
$areas-shimmer-color: rgba(colors.$white-0, 0.15);
|
|
7
10
|
|
|
8
|
-
.#{
|
|
11
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--skeleton {
|
|
9
12
|
// lines
|
|
10
13
|
rect.chart-skeleton-backdrop {
|
|
11
|
-
fill:
|
|
14
|
+
fill: tokens.$grid-bg;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
.shimmer-effect-lines {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '@carbon/styles/scss/
|
|
3
|
-
@use '@carbon/
|
|
1
|
+
@use '@carbon/styles/scss/motion';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
3
|
+
@use '@carbon/colors';
|
|
4
|
+
@use '../globals';
|
|
4
5
|
|
|
5
|
-
.#{
|
|
6
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--threshold {
|
|
6
7
|
line.threshold-line {
|
|
7
|
-
stroke:
|
|
8
|
+
stroke: colors.$red-50;
|
|
8
9
|
stroke-width: 1;
|
|
9
10
|
stroke-dasharray: 4;
|
|
10
11
|
cursor: pointer;
|
|
@@ -27,19 +28,19 @@
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
.#{
|
|
31
|
-
background-color:
|
|
31
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--threshold--label {
|
|
32
|
+
background-color: colors.$red-50;
|
|
32
33
|
pointer-events: none;
|
|
33
34
|
transition: opacity 0.1s;
|
|
34
|
-
@include motion(standard, expressive);
|
|
35
|
+
@include motion.motion(standard, expressive);
|
|
35
36
|
display: inline;
|
|
36
37
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
|
|
37
38
|
position: absolute;
|
|
38
39
|
word-wrap: break-word;
|
|
39
40
|
z-index: 1059;
|
|
40
|
-
font-family: var(--#{
|
|
41
|
+
font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
|
|
41
42
|
|
|
42
|
-
color:
|
|
43
|
+
color: theme.$text-primary;
|
|
43
44
|
line-height: 16px;
|
|
44
45
|
font-size: 12px;
|
|
45
46
|
padding: 4px;
|
|
@@ -48,6 +49,6 @@
|
|
|
48
49
|
&.hidden {
|
|
49
50
|
opacity: 0;
|
|
50
51
|
transition: opacity 0.1s;
|
|
51
|
-
@include motion(standard, expressive);
|
|
52
|
+
@include motion.motion(standard, expressive);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '../globals';
|
|
3
3
|
|
|
4
|
-
.#{
|
|
4
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--title {
|
|
5
5
|
p.title {
|
|
6
|
-
color:
|
|
6
|
+
color: theme.$text-primary;
|
|
7
7
|
font-size: 16px;
|
|
8
|
-
font-family: var(--#{
|
|
8
|
+
font-family: var(--#{globals.$prefix}-charts-font-family);
|
|
9
9
|
// TODO-V11
|
|
10
10
|
// font-weight: font-weight('semibold');
|
|
11
11
|
font-weight: 600;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/styles/scss/components/overflow-menu';
|
|
3
|
+
@use '../globals';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.#{$prefix}--chart-holder {
|
|
5
|
+
.#{globals.$prefix}--chart-holder {
|
|
6
6
|
.cds--overflow-menu,
|
|
7
7
|
.cds--overflow-menu__trigger {
|
|
8
8
|
width: 2rem;
|
|
9
9
|
height: 2rem;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.#{
|
|
12
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--toolbar {
|
|
13
13
|
display: flex;
|
|
14
14
|
|
|
15
15
|
div.toolbar-control {
|
|
@@ -29,7 +29,7 @@ $css--reset: false;
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
svg {
|
|
32
|
-
fill:
|
|
32
|
+
fill: theme.$icon-on-color-disabled;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '@carbon/styles/scss/
|
|
3
|
-
@use '
|
|
1
|
+
@use '@carbon/styles/scss/motion';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
3
|
+
@use '../globals';
|
|
4
|
+
@use '../tokens';
|
|
4
5
|
|
|
5
|
-
.#{
|
|
6
|
-
background-color:
|
|
6
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--tooltip {
|
|
7
|
+
background-color: theme.$layer-02;
|
|
7
8
|
pointer-events: none;
|
|
8
|
-
@include motion(standard, expressive);
|
|
9
|
+
@include motion.motion(standard, expressive);
|
|
9
10
|
display: inline;
|
|
10
11
|
visibility: visible;
|
|
11
12
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
|
|
12
13
|
position: absolute;
|
|
13
14
|
word-wrap: break-word;
|
|
14
15
|
z-index: 1059;
|
|
15
|
-
font-family: var(--#{
|
|
16
|
+
font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
|
|
16
17
|
transition: visibility 0s linear 0.1s, opacity 0.1s;
|
|
17
18
|
|
|
18
19
|
&.hidden {
|
|
19
20
|
opacity: 0;
|
|
20
21
|
visibility: hidden;
|
|
21
22
|
transition: visibility 0s linear 0s, opacity 0.1s;
|
|
22
|
-
@include motion(standard, expressive);
|
|
23
|
+
@include motion.motion(standard, expressive);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.content-box {
|
|
26
|
-
color:
|
|
27
|
+
color: theme.$text-primary;
|
|
27
28
|
|
|
28
29
|
.title-tooltip {
|
|
29
30
|
width: auto;
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
vertical-align: top;
|
|
63
64
|
padding-left: 4px;
|
|
64
65
|
width: auto;
|
|
65
|
-
fill:
|
|
66
|
+
fill: tokens.$layer-inverse-absolute;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
position: relative;
|
|
103
104
|
|
|
104
105
|
&:not(:last-child) {
|
|
105
|
-
border-bottom: 1px solid
|
|
106
|
+
border-bottom: 1px solid tokens.$tooltip-line-border;
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '../globals';
|
|
2
3
|
|
|
3
|
-
.#{
|
|
4
|
-
stroke:
|
|
4
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--zero-line line.domain {
|
|
5
|
+
stroke: theme.$border-strong-01;
|
|
5
6
|
}
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/colors';
|
|
3
|
+
@use '../globals';
|
|
2
4
|
|
|
3
|
-
.#{
|
|
5
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--zoom-bar {
|
|
4
6
|
rect.zoom-bg {
|
|
5
|
-
fill:
|
|
6
|
-
stroke:
|
|
7
|
+
fill: theme.$background;
|
|
8
|
+
stroke: theme.$layer-01;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
rect.zoom-slider-bg {
|
|
10
|
-
fill:
|
|
12
|
+
fill: theme.$layer-01;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
rect.zoom-slider-selected-area {
|
|
14
|
-
fill:
|
|
16
|
+
fill: theme.$icon-secondary;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
path.zoom-bg-baseline {
|
|
18
|
-
stroke:
|
|
20
|
+
stroke: theme.$border-strong-01;
|
|
19
21
|
stroke-width: 2;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
path.zoom-graph-area {
|
|
23
|
-
fill:
|
|
24
|
-
stroke:
|
|
25
|
+
fill: theme.$layer-accent-01;
|
|
26
|
+
stroke: theme.$border-strong-01;
|
|
25
27
|
stroke-width: 1;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
path.zoom-graph-area-unselected {
|
|
29
|
-
fill:
|
|
31
|
+
fill: theme.$layer-01;
|
|
30
32
|
stroke: none;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
g.zoom-bar-brush {
|
|
34
36
|
rect.handle {
|
|
35
|
-
fill:
|
|
37
|
+
fill: theme.$icon-secondary;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
rect.handle-bar {
|
|
39
|
-
fill:
|
|
41
|
+
fill: theme.$layer-02;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
// clear d3.brush selection style
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
rect[class^='highlight-'] {
|
|
50
|
-
fill:
|
|
51
|
-
stroke:
|
|
52
|
+
fill: colors.$magenta-50;
|
|
53
|
+
stroke: colors.$magenta-50;
|
|
52
54
|
}
|
|
53
55
|
}
|