@pioneer-code/pioneer-charts 22.2.17 → 22.2.19
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/fesm2022/pioneer-code-pioneer-charts.mjs +1401 -354
- package/fesm2022/pioneer-code-pioneer-charts.mjs.map +1 -1
- package/package.json +5 -3
- package/scss/dot-plot-chart/dot-plot-chart.component.scss +27 -0
- package/scss/legend/legend.component.scss +6 -0
- package/scss/pioneer-charts.scss +4 -2
- package/scss/plot-line-area-chart/plot-line-area-chart.component.scss +37 -2
- package/scss/proximity-chart/proximity-chart.component.scss +68 -0
- package/themes/pioneer-charts.css +2 -2
- package/themes/pioneer-charts.min.css +1 -1
- package/types/pioneer-code-pioneer-charts.d.ts +281 -51
package/package.json
CHANGED
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "git+https://github.com/PioneerCode/pioneer-charts.git"
|
|
32
32
|
},
|
|
33
|
-
"version": "22.2.
|
|
33
|
+
"version": "22.2.19",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@angular/common": "^22.1.0",
|
|
37
36
|
"@angular/core": "^22.1.0",
|
|
38
37
|
"rxjs": "^7.4.0"
|
|
39
38
|
},
|
|
@@ -50,7 +49,10 @@
|
|
|
50
49
|
"d3-zoom": "^3.0.0",
|
|
51
50
|
"tslib": "^2.3.0"
|
|
52
51
|
},
|
|
53
|
-
"sideEffects":
|
|
52
|
+
"sideEffects": [
|
|
53
|
+
"*.css",
|
|
54
|
+
"*.scss"
|
|
55
|
+
],
|
|
54
56
|
"module": "fesm2022/pioneer-code-pioneer-charts.mjs",
|
|
55
57
|
"typings": "types/pioneer-code-pioneer-charts.d.ts",
|
|
56
58
|
"exports": {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.pcac-dot-plot-chart {
|
|
2
|
+
svg {
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// A dot's outline is its series' color (set by the builder); its fill is the page's background
|
|
8
|
+
// until hovered or focused, when it fills with the series' color. `--pcac-dot-fill` changes the
|
|
9
|
+
// resting fill - for a dark background, say - as the theme's other custom properties do.
|
|
10
|
+
.pcac-dot {
|
|
11
|
+
stroke-width: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pcac-dot-mark {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// `heightFull` support (see PcacChartConfig.heightFull), as on the other charts.
|
|
20
|
+
pcac-dot-plot-chart.pcac-height-full {
|
|
21
|
+
display: block;
|
|
22
|
+
height: 100%;
|
|
23
|
+
|
|
24
|
+
.pcac-dot-plot-chart {
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -34,6 +34,12 @@
|
|
|
34
34
|
border-radius: 50%;
|
|
35
35
|
margin-right: 4px;
|
|
36
36
|
transition: box-shadow 0.3s ease, transform 0.3s ease;
|
|
37
|
+
|
|
38
|
+
// Grown in place, without the animation, for anyone who has asked their system to reduce
|
|
39
|
+
// motion - as the charts are drawn without theirs (PcacTransitionService).
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
transition: none;
|
|
42
|
+
}
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
.pcac-legend-unchecked {
|
package/scss/pioneer-charts.scss
CHANGED
|
@@ -33,8 +33,10 @@
|
|
|
33
33
|
outline: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
// Its color is `--pcac-focus-ring-color`, like the axis and grid colors below: a page with a dark
|
|
37
|
+
// background sets a light one.
|
|
36
38
|
[data-pcac-mark]:focus-visible {
|
|
37
|
-
outline: 2px solid imports.$gray-800;
|
|
39
|
+
outline: 2px solid var(--pcac-focus-ring-color, #{imports.$gray-800});
|
|
38
40
|
outline-offset: 2px;
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
// bounding box - which, around a wedge, frames half its neighbors too.
|
|
43
45
|
.pcac-arc path[data-pcac-mark]:focus-visible {
|
|
44
46
|
outline: none;
|
|
45
|
-
stroke: imports.$gray-800;
|
|
47
|
+
stroke: var(--pcac-focus-ring-color, #{imports.$gray-800});
|
|
46
48
|
stroke-width: 2px;
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -23,6 +23,39 @@
|
|
|
23
23
|
fill: var(--pcac-fan-out-anchor-color, #{imports.$gray-600});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// `referenceLines` (see PcacReferenceLine) and `cornerLabels` (PcacCornerLabels): guides, drawn
|
|
27
|
+
// as quietly as the fan-out anchors. `color` overrides them through `--pcac-reference-line-color`
|
|
28
|
+
// (on each line's group) and `--pcac-corner-label-color` (on the labels' group), as above.
|
|
29
|
+
.reference-line-stroke {
|
|
30
|
+
stroke: var(--pcac-reference-line-color, #{imports.$gray-500});
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
stroke-dasharray: 4 4;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.reference-line-label {
|
|
36
|
+
font-size: 11px;
|
|
37
|
+
fill: var(--pcac-reference-line-color, #{imports.$gray-500});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// `pointGauge` (see PcacPointGaugeConfig): a ring around each point with a `gauge`. The arc is
|
|
41
|
+
// the config's `color` (`--pcac-point-gauge-color`, on each `.dots` group) or else the series'
|
|
42
|
+
// own (`--pcac-point-gauge-series-color`, which the builder sets on each ring); the track is
|
|
43
|
+
// `trackColor` (`--pcac-point-gauge-track-color`) or a light gray, like the grid.
|
|
44
|
+
.point-gauge-track {
|
|
45
|
+
fill: none;
|
|
46
|
+
stroke: var(--pcac-point-gauge-track-color, #{imports.$gray-200});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.point-gauge-arc {
|
|
50
|
+
fill: var(--pcac-point-gauge-color, var(--pcac-point-gauge-series-color));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.corner-label {
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
fill: var(--pcac-corner-label-color, #{imports.$gray-600});
|
|
57
|
+
}
|
|
58
|
+
|
|
26
59
|
// `pointRange` (see PcacPointRangeConfig): each point's `range`, drawn by the builder into a
|
|
27
60
|
// `.point-range` group per point, a `.point-range-series` group per series, and one
|
|
28
61
|
// `.point-ranges` group for the chart. Color is the config's `color` when set
|
|
@@ -99,8 +132,10 @@
|
|
|
99
132
|
fill: none;
|
|
100
133
|
}
|
|
101
134
|
|
|
135
|
+
// The hover crosshair's line and value labels: `--pcac-crosshair-line-color` and
|
|
136
|
+
// `--pcac-crosshair-text-color`, for a dark background (see pioneer-charts.scss's colors).
|
|
102
137
|
.effect-line {
|
|
103
|
-
stroke: imports.$gray-400;
|
|
138
|
+
stroke: var(--pcac-crosshair-line-color, #{imports.$gray-400});
|
|
104
139
|
stroke-width: 1px;
|
|
105
140
|
opacity: 0;
|
|
106
141
|
}
|
|
@@ -114,7 +149,7 @@
|
|
|
114
149
|
.effect-text {
|
|
115
150
|
font-size: 11px;
|
|
116
151
|
font-weight: bold;
|
|
117
|
-
fill: imports.$gray-800;
|
|
152
|
+
fill: var(--pcac-crosshair-text-color, #{imports.$gray-800});
|
|
118
153
|
}
|
|
119
154
|
}
|
|
120
155
|
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "../core/theme/imports";
|
|
2
|
+
|
|
3
|
+
.pcac-proximity-chart {
|
|
4
|
+
svg {
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Guides: the rings, their labels and the spokes, as quiet as the plot chart's fan-out anchors.
|
|
10
|
+
// Each color is a custom property, so a stylesheet can restyle them - for a dark background, say.
|
|
11
|
+
.pcac-proximity-ring circle {
|
|
12
|
+
stroke: var(--pcac-proximity-ring-color, #{imports.$gray-300});
|
|
13
|
+
stroke-dasharray: 3 4;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pcac-proximity-ring-label {
|
|
17
|
+
font-size: 11px;
|
|
18
|
+
fill: var(--pcac-proximity-ring-label-color, #{imports.$gray-600});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pcac-proximity-spoke {
|
|
22
|
+
stroke: var(--pcac-proximity-spoke-color, #{imports.$gray-300});
|
|
23
|
+
stroke-width: 1px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pcac-proximity-item {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Names under the items (`showLabels`), and ring labels, keep a halo of the background around them
|
|
31
|
+
// so a spoke or ring running behind doesn't cut through the text.
|
|
32
|
+
.pcac-proximity-label,
|
|
33
|
+
.pcac-proximity-ring-label {
|
|
34
|
+
paint-order: stroke;
|
|
35
|
+
stroke: var(--pcac-proximity-label-halo-color, #{imports.$white});
|
|
36
|
+
stroke-width: 3px;
|
|
37
|
+
stroke-linejoin: round;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pcac-proximity-label {
|
|
41
|
+
font-size: 11px;
|
|
42
|
+
fill: var(--pcac-proximity-label-color, #{imports.$gray-800});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pcac-proximity-center .pcac-proximity-label {
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// A hovered or focused item's dot grows a ring in its own color.
|
|
50
|
+
.pcac-proximity-item.is-active .pcac-proximity-dot {
|
|
51
|
+
stroke: currentColor;
|
|
52
|
+
stroke-width: 2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pcac-proximity-item.is-active .pcac-proximity-image {
|
|
56
|
+
filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// `heightFull` support (see PcacChartConfig.heightFull), as on the other charts.
|
|
61
|
+
pcac-proximity-chart.pcac-height-full {
|
|
62
|
+
display: block;
|
|
63
|
+
height: 100%;
|
|
64
|
+
|
|
65
|
+
.pcac-proximity-chart {
|
|
66
|
+
height: 100%;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
[data-pcac-mark]:focus-visible {
|
|
22
|
-
outline: 2px solid #343a40;
|
|
22
|
+
outline: 2px solid var(--pcac-focus-ring-color, #343a40);
|
|
23
23
|
outline-offset: 2px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.pcac-arc path[data-pcac-mark]:focus-visible {
|
|
27
27
|
outline: none;
|
|
28
|
-
stroke: #343a40;
|
|
28
|
+
stroke: var(--pcac-focus-ring-color, #343a40);
|
|
29
29
|
stroke-width: 2px;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pcac-d3-tooltip{position:absolute;pointer-events:none;display:none;z-index:1000}.pcac-d3-tooltip-default{text-align:center;font-size:14px;padding:.5rem;background-color:rgba(52,58,64,.85);color:#fff;border-radius:2px}[data-pcac-mark]:focus{outline:none}[data-pcac-mark]:focus-visible{outline:2px solid #343a40;outline-offset:2px}.pcac-arc path[data-pcac-mark]:focus-visible{outline:none;stroke
|
|
1
|
+
.pcac-d3-tooltip{position:absolute;pointer-events:none;display:none;z-index:1000}.pcac-d3-tooltip-default{text-align:center;font-size:14px;padding:.5rem;background-color:rgba(52,58,64,.85);color:#fff;border-radius:2px}[data-pcac-mark]:focus{outline:none}[data-pcac-mark]:focus-visible{outline:2px solid var(--pcac-focus-ring-color, #343a40);outline-offset:2px}.pcac-arc path[data-pcac-mark]:focus-visible{outline:none;stroke:var(--pcac-focus-ring-color, #343a40);stroke-width:2px}.pcac-grid-rule line{stroke:var(--pcac-grid-color, #e9ecef)}.pcac-donut-center-label{fill:var(--pcac-donut-center-label-color, #343a40);font-weight:500}.pcac-donut-center-sub-label{fill:var(--pcac-donut-center-sub-label-color, #6c757d)}.pcac-x-axis path,.pcac-x-axis line,.pcac-y-axis path,.pcac-y-axis line{stroke:none}.pcac-x-axis.pcac-axis-tick-marks .tick line,.pcac-y-axis.pcac-axis-tick-marks .tick line{stroke:var(--pcac-axis-tick-color, #212529)}.pcac-x-axis.pcac-axis-line .domain,.pcac-y-axis.pcac-axis-line .domain{stroke:var(--pcac-axis-line-color, #212529)}.pcac-x-axis .pcac-axis-label,.pcac-y-axis .pcac-axis-label{font-size:12px;font-weight:600;fill:var(--pcac-axis-label-color, #495057)}.pcac-x-axis .pcac-axis-sub-label,.pcac-y-axis .pcac-axis-sub-label{font-size:11px;fill:var(--pcac-axis-sub-label-color, #6c757d)}:where(.pcac-x-axis,.pcac-y-axis) :where(.tick) text{fill:var(--pcac-axis-tick-label-color, currentColor)}
|