@pioneer-code/pioneer-charts 22.2.16 → 22.2.17
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 +515 -147
- package/fesm2022/pioneer-code-pioneer-charts.mjs.map +1 -1
- package/package.json +1 -1
- package/scss/pioneer-charts.scss +21 -0
- package/themes/pioneer-charts.css +15 -0
- package/themes/pioneer-charts.min.css +1 -1
- package/types/pioneer-code-pioneer-charts.d.ts +17 -13
package/package.json
CHANGED
package/scss/pioneer-charts.scss
CHANGED
|
@@ -25,6 +25,27 @@
|
|
|
25
25
|
border-radius: 2px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
// A bar, slice or point with keyboard focus (see core/marks.ts). Focus already does what hover does -
|
|
29
|
+
// highlights the mark and shows its tooltip - and the ring marks which one has it on top of that,
|
|
30
|
+
// so it can't be mistaken for a mark the pointer happens to be over. Only for focus from the
|
|
31
|
+
// keyboard: pressing the pointer on a mark doesn't focus it.
|
|
32
|
+
[data-pcac-mark]:focus {
|
|
33
|
+
outline: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-pcac-mark]:focus-visible {
|
|
37
|
+
outline: 2px solid imports.$gray-800;
|
|
38
|
+
outline-offset: 2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// A slice is traced along its own edge instead: an outline is always a rectangle - the slice's
|
|
42
|
+
// bounding box - which, around a wedge, frames half its neighbors too.
|
|
43
|
+
.pcac-arc path[data-pcac-mark]:focus-visible {
|
|
44
|
+
outline: none;
|
|
45
|
+
stroke: imports.$gray-800;
|
|
46
|
+
stroke-width: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
28
49
|
// Each color below is `var(--pcac-*-color, <theme color>)`. A builder sets the property on a
|
|
29
50
|
// part's group only when the chart's config gives that color (`PcacAxisConfig`'s `*Color` fields,
|
|
30
51
|
// `PcacPointFanOutConfig.spokeColor` / `anchorColor`, `PcacDonutChartConfig.labelColor` /
|
|
@@ -14,6 +14,21 @@
|
|
|
14
14
|
border-radius: 2px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
[data-pcac-mark]:focus {
|
|
18
|
+
outline: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-pcac-mark]:focus-visible {
|
|
22
|
+
outline: 2px solid #343a40;
|
|
23
|
+
outline-offset: 2px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pcac-arc path[data-pcac-mark]:focus-visible {
|
|
27
|
+
outline: none;
|
|
28
|
+
stroke: #343a40;
|
|
29
|
+
stroke-width: 2px;
|
|
30
|
+
}
|
|
31
|
+
|
|
17
32
|
.pcac-grid-rule line {
|
|
18
33
|
stroke: var(--pcac-grid-color, #e9ecef);
|
|
19
34
|
}
|
|
@@ -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}.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)}
|
|
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:#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)}
|
|
@@ -231,10 +231,12 @@ declare class PcacBarHorizontalChartConfig extends PcacAxisChartConfig {
|
|
|
231
231
|
isStacked: boolean;
|
|
232
232
|
thresholds: PcacData[];
|
|
233
233
|
spreadColorsPerGroup: boolean;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
/**
|
|
235
|
+
* Bar colors, any CSS color, in place of the theme palette - by series, or by group with
|
|
236
|
+
* `spreadColorsPerGroup`. Repeated when there are more series (or groups) than colors. Empty,
|
|
237
|
+
* the theme palette is used.
|
|
238
|
+
*/
|
|
239
|
+
colorOverride: string[];
|
|
238
240
|
}
|
|
239
241
|
|
|
240
242
|
/**
|
|
@@ -361,10 +363,12 @@ declare class PcacBarVerticalChartConfig extends PcacAxisChartConfig {
|
|
|
361
363
|
isStacked: boolean;
|
|
362
364
|
thresholds: PcacData[];
|
|
363
365
|
spreadColorsPerGroup: boolean;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
/**
|
|
367
|
+
* Bar colors, any CSS color, in place of the theme palette - by series, or by group with
|
|
368
|
+
* `spreadColorsPerGroup`. Repeated when there are more series (or groups) than colors. Empty,
|
|
369
|
+
* the theme palette is used.
|
|
370
|
+
*/
|
|
371
|
+
colorOverride: string[];
|
|
368
372
|
}
|
|
369
373
|
|
|
370
374
|
declare class PcacBarVerticalChartComponent {
|
|
@@ -384,7 +388,6 @@ declare class PcacBarVerticalChartComponent {
|
|
|
384
388
|
}
|
|
385
389
|
|
|
386
390
|
declare class PcacColorService {
|
|
387
|
-
private primary;
|
|
388
391
|
private primaryLight;
|
|
389
392
|
private success;
|
|
390
393
|
private danger;
|
|
@@ -426,8 +429,6 @@ declare class PcacColorService {
|
|
|
426
429
|
* @param colors A collection of hex values
|
|
427
430
|
*/
|
|
428
431
|
setScale(colors: string[]): void;
|
|
429
|
-
/** @deprecated No chart reads the primary color; it isn't part of the palette. */
|
|
430
|
-
setPrimary(color: string): void;
|
|
431
432
|
setPrimaryLight(color: string): void;
|
|
432
433
|
setSuccess(color: string): void;
|
|
433
434
|
setDanger(color: string): void;
|
|
@@ -449,6 +450,7 @@ declare class PcacLegendConfig {
|
|
|
449
450
|
items: PcacLegendConfigItem[];
|
|
450
451
|
}
|
|
451
452
|
declare class PcacLegend {
|
|
453
|
+
readonly headingId: string;
|
|
452
454
|
readonly colorService: PcacColorService;
|
|
453
455
|
config: _angular_core.ModelSignal<PcacLegendConfig>;
|
|
454
456
|
itemClicked: _angular_core.OutputEmitterRef<PcacLegendConfigItem[]>;
|
|
@@ -525,7 +527,9 @@ declare class PcacLineAreaChartConfig extends PcacAxisChartConfig {
|
|
|
525
527
|
/**
|
|
526
528
|
* Zoom and pan along the x / y axis (scroll / pinch to zoom 1x-10x, drag to pan, never leaving
|
|
527
529
|
* the original domain). Either, or both, can be on. A gesture is always two-dimensional, so with
|
|
528
|
-
* only one enabled the other axis simply stays put. Both off by default.
|
|
530
|
+
* only one enabled the other axis simply stays put. Both off by default. The zoom is kept when
|
|
531
|
+
* the chart redraws - a new config, a series toggled in a legend, a resize (which keeps the same
|
|
532
|
+
* part of the domain in view) - and dropped when zoom is turned off or the zoomable axes change.
|
|
529
533
|
*/
|
|
530
534
|
enableZoomX: boolean;
|
|
531
535
|
enableZoomY: boolean;
|
|
@@ -716,5 +720,5 @@ declare class PcacDonutChart {
|
|
|
716
720
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PcacDonutChart, "pcac-donut-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, ["tooltipTemplate"], never, true, never>;
|
|
717
721
|
}
|
|
718
722
|
|
|
719
|
-
export { PcacAreaChart, PcacAreaChartConfig, PcacAxisChartConfig, PcacAxisConfig, PcacAxisSubLabels,
|
|
723
|
+
export { PcacAreaChart, PcacAreaChartConfig, PcacAxisChartConfig, PcacAxisConfig, PcacAxisSubLabels, PcacBarHorizontalChartComponent, PcacBarHorizontalChartConfig, PcacBarVerticalChartComponent, PcacBarVerticalChartConfig, PcacChartConfig, PcacColorService, PcacData, PcacDataRange, PcacDonutChart, PcacDonutChartConfig, PcacFormatEnum, PcacLegend, PcacLegendConfig, PcacLegendConfigItem, PcacLineChart, PcacLineChartConfig, PcacPieChart, PcacPieChartConfig, PcacPlotChart, PcacPlotChartConfig, PcacPointFanOutConfig, PcacPointImageConfig, PcacPointRangeConfig, PcacPointRangeShow, PcacPointRangeStyle, PcacRangeBounds, PcacTooltipDirective };
|
|
720
724
|
export type { PcacTooltipCoincident, PcacTooltipContext };
|