@konce-pt/angular 0.17.0 → 0.18.1

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.
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, output, ViewEncapsulation, ChangeDetectionStrategy, Component, linkedSignal, computed, viewChild, afterRenderEffect, inject, signal, effect, untracked, DestroyRef } from '@angular/core';
3
3
  import { KptI18n, KPT_MOTION_CONFIG } from '@konce-pt/angular';
4
- import { reelCells, chartAccessibleName, chartDataTable, KptChartMotion, plotArea, seriesColor, extent, domainScale, niceScale, linearScale, areaPath, linePath, significantDelta, deltaKind, formatNumber, barLayout, bandScale, radialArea, polarSlices, pieSlices, radarGrid, radarPoints, polygonPath, polarToCartesian, sameChartShape, dataScale, holdDomain } from '@konce-pt/chart';
4
+ import { reelCells, estimateLabelWidth, axisLabelIndices, clampLabel, chartAccessibleName, chartDataTable, KptChartMotion, plotArea, seriesColor, domainScale, chartScale, stackSeries, linearScale, axisBase, bandPath, areaPath, linePath, significantDelta, deltaKind, formatNumber, barLayout, bandScale, radialArea, polarSlices, pieSlices, radarGrid, radarPoints, polygonPath, polarToCartesian, sameChartShape, scaleRows, dataScale } from '@konce-pt/chart';
5
5
  export { KPT_CHART_PALETTE, areaPath, barLayout, linePath, niceScale, pieSlices, polarSlices, radarGrid, radarPoints, seriesColor } from '@konce-pt/chart';
6
6
 
7
7
  const _forTrack0$2 = ($index, $item) => $item.key;
@@ -375,140 +375,156 @@ function KptChart_Case_7_Conditional_0_For_6_Template(rf, ctx) { if (rf & 1) {
375
375
  i0.ɵɵadvance();
376
376
  i0.ɵɵtextInterpolate(l_r6.text);
377
377
  } }
378
- function KptChart_Case_7_Conditional_0_For_8_Template(rf, ctx) { if (rf & 1) {
378
+ function KptChart_Case_7_Conditional_0_For_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
379
379
  i0.ɵɵnamespaceSVG();
380
380
  i0.ɵɵelementStart(0, "text");
381
381
  i0.ɵɵtext(1);
382
382
  i0.ɵɵelementEnd();
383
383
  } if (rf & 2) {
384
- const l_r7 = ctx.$implicit;
384
+ const l_r7 = i0.ɵɵnextContext().$implicit;
385
385
  i0.ɵɵattribute("x", l_r7.x)("y", l_r7.y)("text-anchor", l_r7.anchor);
386
386
  i0.ɵɵadvance();
387
387
  i0.ɵɵtextInterpolate(l_r7.text);
388
388
  } }
389
- function KptChart_Case_7_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
389
+ function KptChart_Case_7_Conditional_0_For_8_Template(rf, ctx) { if (rf & 1) {
390
+ i0.ɵɵconditionalCreate(0, KptChart_Case_7_Conditional_0_For_8_Conditional_0_Template, 2, 4, ":svg:text");
391
+ } if (rf & 2) {
392
+ const l_r7 = ctx.$implicit;
393
+ i0.ɵɵconditional(l_r7.visible ? 0 : -1);
394
+ } }
395
+ function KptChart_Case_7_Conditional_0_For_11_Template(rf, ctx) { if (rf & 1) {
396
+ i0.ɵɵnamespaceSVG();
397
+ i0.ɵɵelement(0, "circle", 28);
398
+ } if (rf & 2) {
399
+ const t_r8 = ctx.$implicit;
400
+ const $index_r9 = ctx.$index;
401
+ const ctx_r0 = i0.ɵɵnextContext(3);
402
+ i0.ɵɵclassProp("kpt-chart__cat-tick--active", ctx_r0.activeIndex() === $index_r9);
403
+ i0.ɵɵattribute("cx", t_r8.x)("cy", t_r8.y);
404
+ } }
405
+ function KptChart_Case_7_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
390
406
  i0.ɵɵnamespaceSVG();
391
- i0.ɵɵelementStart(0, "g", 21);
407
+ i0.ɵɵelementStart(0, "g", 23);
392
408
  i0.ɵɵelement(1, "rect");
393
- i0.ɵɵelementStart(2, "text", 26);
409
+ i0.ɵɵelementStart(2, "text", 29);
394
410
  i0.ɵɵtext(3);
395
411
  i0.ɵɵelementEnd()();
396
412
  } if (rf & 2) {
397
- const ch_r8 = ctx;
413
+ const ch_r10 = ctx;
398
414
  i0.ɵɵadvance();
399
- i0.ɵɵattribute("x", ch_r8.pillX)("y", ch_r8.pillY)("width", ch_r8.pillW)("height", ch_r8.pillH)("rx", ch_r8.pillH / 2);
415
+ i0.ɵɵattribute("x", ch_r10.pillX)("y", ch_r10.pillY)("width", ch_r10.pillW)("height", ch_r10.pillH)("rx", ch_r10.pillH / 2);
400
416
  i0.ɵɵadvance();
401
- i0.ɵɵattribute("x", ch_r8.labelX)("y", ch_r8.labelY);
417
+ i0.ɵɵattribute("x", ch_r10.labelX)("y", ch_r10.labelY);
402
418
  i0.ɵɵadvance();
403
- i0.ɵɵtextInterpolate(ch_r8.text);
419
+ i0.ɵɵtextInterpolate(ch_r10.text);
404
420
  } }
405
- function KptChart_Case_7_Conditional_0_For_11_For_3_Template(rf, ctx) { if (rf & 1) {
421
+ function KptChart_Case_7_Conditional_0_For_14_For_3_Template(rf, ctx) { if (rf & 1) {
406
422
  i0.ɵɵnamespaceSVG();
407
- i0.ɵɵelement(0, "line", 28);
423
+ i0.ɵɵelement(0, "line", 31);
408
424
  } if (rf & 2) {
409
- const t_r9 = ctx.$implicit;
410
- i0.ɵɵattribute("data-kind", t_r9.kind)("x1", t_r9.x)("x2", t_r9.x)("y1", t_r9.y1)("y2", t_r9.y2);
425
+ const t_r11 = ctx.$implicit;
426
+ i0.ɵɵattribute("data-kind", t_r11.kind)("x1", t_r11.x)("x2", t_r11.x)("y1", t_r11.y1)("y2", t_r11.y2);
411
427
  } }
412
- function KptChart_Case_7_Conditional_0_For_11_Template(rf, ctx) { if (rf & 1) {
428
+ function KptChart_Case_7_Conditional_0_For_14_Template(rf, ctx) { if (rf & 1) {
413
429
  i0.ɵɵnamespaceSVG();
414
- i0.ɵɵelementStart(0, "g", 22);
415
- i0.ɵɵelement(1, "path", 27);
416
- i0.ɵɵrepeaterCreate(2, KptChart_Case_7_Conditional_0_For_11_For_3_Template, 1, 5, ":svg:line", 28, i0.ɵɵrepeaterTrackByIndex);
430
+ i0.ɵɵelementStart(0, "g", 24);
431
+ i0.ɵɵelement(1, "path", 30);
432
+ i0.ɵɵrepeaterCreate(2, KptChart_Case_7_Conditional_0_For_14_For_3_Template, 1, 5, ":svg:line", 31, i0.ɵɵrepeaterTrackByIndex);
417
433
  i0.ɵɵelementEnd();
418
434
  } if (rf & 2) {
419
- const g_r10 = ctx.$implicit;
435
+ const g_r12 = ctx.$implicit;
420
436
  i0.ɵɵadvance();
421
- i0.ɵɵattribute("d", g_r10.path);
437
+ i0.ɵɵattribute("d", g_r12.path);
422
438
  i0.ɵɵadvance();
423
- i0.ɵɵrepeater(g_r10.ticks);
439
+ i0.ɵɵrepeater(g_r12.ticks);
424
440
  } }
425
- function KptChart_Case_7_Conditional_0_For_13_Conditional_1_Template(rf, ctx) { if (rf & 1) {
441
+ function KptChart_Case_7_Conditional_0_For_16_Conditional_1_Template(rf, ctx) { if (rf & 1) {
426
442
  i0.ɵɵnamespaceSVG();
427
- i0.ɵɵelement(0, "path", 32);
443
+ i0.ɵɵelement(0, "path", 35);
428
444
  } if (rf & 2) {
429
- const s_r11 = i0.ɵɵnextContext().$implicit;
430
- i0.ɵɵstyleProp("fill", s_r11.color);
431
- i0.ɵɵattribute("d", s_r11.area);
445
+ const s_r13 = i0.ɵɵnextContext().$implicit;
446
+ i0.ɵɵstyleProp("fill", s_r13.color);
447
+ i0.ɵɵattribute("d", s_r13.area);
432
448
  } }
433
- function KptChart_Case_7_Conditional_0_For_13_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
449
+ function KptChart_Case_7_Conditional_0_For_16_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
434
450
  i0.ɵɵnamespaceSVG();
435
- i0.ɵɵelement(0, "circle", 34);
451
+ i0.ɵɵelement(0, "circle", 37);
436
452
  } if (rf & 2) {
437
- const ctx_r11 = i0.ɵɵnextContext();
438
- const p_r13 = ctx_r11.$implicit;
439
- const $index_r14 = ctx_r11.$index;
440
- const s_r11 = i0.ɵɵnextContext().$implicit;
453
+ const ctx_r13 = i0.ɵɵnextContext();
454
+ const p_r15 = ctx_r13.$implicit;
455
+ const $index_r16 = ctx_r13.$index;
456
+ const s_r13 = i0.ɵɵnextContext().$implicit;
441
457
  const ctx_r0 = i0.ɵɵnextContext(3);
442
- i0.ɵɵstyleProp("fill", s_r11.color)("--%NS%kpt-chart-i", $index_r14);
443
- i0.ɵɵclassProp("kpt-chart__point--active", ctx_r0.activeIndex() === $index_r14);
444
- i0.ɵɵattribute("cx", p_r13.x)("cy", p_r13.y);
458
+ i0.ɵɵstyleProp("fill", s_r13.color)("--%NS%kpt-chart-i", $index_r16);
459
+ i0.ɵɵclassProp("kpt-chart__point--active", ctx_r0.activeIndex() === $index_r16);
460
+ i0.ɵɵattribute("cx", p_r15.x)("cy", p_r15.y);
445
461
  } }
446
- function KptChart_Case_7_Conditional_0_For_13_For_4_Template(rf, ctx) { if (rf & 1) {
447
- i0.ɵɵconditionalCreate(0, KptChart_Case_7_Conditional_0_For_13_For_4_Conditional_0_Template, 1, 8, ":svg:circle", 33);
462
+ function KptChart_Case_7_Conditional_0_For_16_For_4_Template(rf, ctx) { if (rf & 1) {
463
+ i0.ɵɵconditionalCreate(0, KptChart_Case_7_Conditional_0_For_16_For_4_Conditional_0_Template, 1, 8, ":svg:circle", 36);
448
464
  } if (rf & 2) {
449
- const vm_r15 = i0.ɵɵnextContext(2);
450
- i0.ɵɵconditional(vm_r15.showPoints ? 0 : -1);
465
+ const vm_r17 = i0.ɵɵnextContext(2);
466
+ i0.ɵɵconditional(vm_r17.showPoints ? 0 : -1);
451
467
  } }
452
- function KptChart_Case_7_Conditional_0_For_13_Template(rf, ctx) { if (rf & 1) {
468
+ function KptChart_Case_7_Conditional_0_For_16_Template(rf, ctx) { if (rf & 1) {
453
469
  i0.ɵɵnamespaceSVG();
454
- i0.ɵɵelementStart(0, "g", 29);
455
- i0.ɵɵconditionalCreate(1, KptChart_Case_7_Conditional_0_For_13_Conditional_1_Template, 1, 3, ":svg:path", 30);
456
- i0.ɵɵelement(2, "path", 31);
457
- i0.ɵɵrepeaterCreate(3, KptChart_Case_7_Conditional_0_For_13_For_4_Template, 1, 1, null, null, i0.ɵɵrepeaterTrackByIndex);
470
+ i0.ɵɵelementStart(0, "g", 32);
471
+ i0.ɵɵconditionalCreate(1, KptChart_Case_7_Conditional_0_For_16_Conditional_1_Template, 1, 3, ":svg:path", 33);
472
+ i0.ɵɵelement(2, "path", 34);
473
+ i0.ɵɵrepeaterCreate(3, KptChart_Case_7_Conditional_0_For_16_For_4_Template, 1, 1, null, null, i0.ɵɵrepeaterTrackByIndex);
458
474
  i0.ɵɵelementEnd();
459
475
  } if (rf & 2) {
460
- const s_r11 = ctx.$implicit;
476
+ const s_r13 = ctx.$implicit;
461
477
  const ctx_r0 = i0.ɵɵnextContext(3);
462
- i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(s_r11.key));
478
+ i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(s_r13.key));
463
479
  i0.ɵɵadvance();
464
- i0.ɵɵconditional(s_r11.area ? 1 : -1);
480
+ i0.ɵɵconditional(s_r13.area ? 1 : -1);
465
481
  i0.ɵɵadvance();
466
- i0.ɵɵstyleProp("stroke", s_r11.color);
467
- i0.ɵɵattribute("d", s_r11.path);
482
+ i0.ɵɵstyleProp("stroke", s_r13.color);
483
+ i0.ɵɵattribute("d", s_r13.path);
468
484
  i0.ɵɵadvance();
469
- i0.ɵɵrepeater(s_r11.points);
485
+ i0.ɵɵrepeater(s_r13.points);
470
486
  } }
471
- function KptChart_Case_7_Conditional_0_Conditional_14_For_1_Template(rf, ctx) { if (rf & 1) {
487
+ function KptChart_Case_7_Conditional_0_Conditional_17_For_1_Template(rf, ctx) { if (rf & 1) {
472
488
  i0.ɵɵnamespaceSVG();
473
- i0.ɵɵelement(0, "path", 36);
489
+ i0.ɵɵelement(0, "path", 39);
474
490
  } if (rf & 2) {
475
- const s_r16 = ctx.$implicit;
476
- const sh_r17 = i0.ɵɵnextContext();
491
+ const s_r18 = ctx.$implicit;
492
+ const sh_r19 = i0.ɵɵnextContext();
477
493
  const ctx_r0 = i0.ɵɵnextContext(3);
478
- i0.ɵɵstyleProp("opacity", sh_r17.opacity);
479
- i0.ɵɵattribute("d", s_r16.path)("stroke", "url(#" + ctx_r0.sheenId + ")");
494
+ i0.ɵɵstyleProp("opacity", sh_r19.opacity);
495
+ i0.ɵɵattribute("d", s_r18.path)("stroke", "url(#" + ctx_r0.sheenId + ")");
480
496
  } }
481
- function KptChart_Case_7_Conditional_0_Conditional_14_Template(rf, ctx) { if (rf & 1) {
482
- i0.ɵɵrepeaterCreate(0, KptChart_Case_7_Conditional_0_Conditional_14_For_1_Template, 1, 4, ":svg:path", 35, _forTrack0);
497
+ function KptChart_Case_7_Conditional_0_Conditional_17_Template(rf, ctx) { if (rf & 1) {
498
+ i0.ɵɵrepeaterCreate(0, KptChart_Case_7_Conditional_0_Conditional_17_For_1_Template, 1, 4, ":svg:path", 38, _forTrack0);
483
499
  } if (rf & 2) {
484
- const vm_r15 = i0.ɵɵnextContext();
485
- i0.ɵɵrepeater(vm_r15.series);
500
+ const vm_r17 = i0.ɵɵnextContext();
501
+ i0.ɵɵrepeater(vm_r17.series);
486
502
  } }
487
- function KptChart_Case_7_Conditional_0_For_16_For_1_Template(rf, ctx) { if (rf & 1) {
503
+ function KptChart_Case_7_Conditional_0_For_19_For_1_Template(rf, ctx) { if (rf & 1) {
488
504
  i0.ɵɵnamespaceSVG();
489
- i0.ɵɵelementStart(0, "text", 38);
505
+ i0.ɵɵelementStart(0, "text", 41);
490
506
  i0.ɵɵtext(1);
491
507
  i0.ɵɵelementEnd();
492
508
  } if (rf & 2) {
493
- const c_r18 = ctx.$implicit;
494
- i0.ɵɵstyleProp("--%NS%kpt-chart-i", c_r18.index);
495
- i0.ɵɵattribute("data-kind", c_r18.kind)("x", c_r18.x)("y", c_r18.y);
509
+ const c_r20 = ctx.$implicit;
510
+ i0.ɵɵstyleProp("--%NS%kpt-chart-i", c_r20.index);
511
+ i0.ɵɵattribute("data-kind", c_r20.kind)("x", c_r20.x)("y", c_r20.y);
496
512
  i0.ɵɵadvance();
497
- i0.ɵɵtextInterpolate(c_r18.text);
513
+ i0.ɵɵtextInterpolate(c_r20.text);
498
514
  } }
499
- function KptChart_Case_7_Conditional_0_For_16_Template(rf, ctx) { if (rf & 1) {
500
- i0.ɵɵrepeaterCreate(0, KptChart_Case_7_Conditional_0_For_16_For_1_Template, 2, 6, ":svg:text", 37, _forTrack2);
515
+ function KptChart_Case_7_Conditional_0_For_19_Template(rf, ctx) { if (rf & 1) {
516
+ i0.ɵɵrepeaterCreate(0, KptChart_Case_7_Conditional_0_For_19_For_1_Template, 2, 6, ":svg:text", 40, _forTrack2);
501
517
  } if (rf & 2) {
502
- const g_r19 = ctx.$implicit;
503
- i0.ɵɵrepeater(g_r19.chips);
518
+ const g_r21 = ctx.$implicit;
519
+ i0.ɵɵrepeater(g_r21.chips);
504
520
  } }
505
- function KptChart_Case_7_Conditional_0_For_18_Template(rf, ctx) { if (rf & 1) {
521
+ function KptChart_Case_7_Conditional_0_For_21_Template(rf, ctx) { if (rf & 1) {
506
522
  i0.ɵɵnamespaceSVG();
507
- i0.ɵɵelement(0, "circle", 39);
523
+ i0.ɵɵelement(0, "circle", 42);
508
524
  } if (rf & 2) {
509
- const r_r20 = ctx.$implicit;
510
- i0.ɵɵstyleProp("stroke", r_r20.color);
511
- i0.ɵɵattribute("cx", r_r20.x)("cy", r_r20.y);
525
+ const r_r22 = ctx.$implicit;
526
+ i0.ɵɵstyleProp("stroke", r_r22.color);
527
+ i0.ɵɵattribute("cx", r_r22.x)("cy", r_r22.y);
512
528
  } }
513
529
  function KptChart_Case_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
514
530
  const _r3 = i0.ɵɵgetCurrentView();
@@ -519,48 +535,53 @@ function KptChart_Case_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
519
535
  i0.ɵɵconditionalCreate(3, KptChart_Case_7_Conditional_0_Conditional_3_Template, 1, 4, ":svg:line", 19);
520
536
  i0.ɵɵelementStart(4, "g", 20);
521
537
  i0.ɵɵrepeaterCreate(5, KptChart_Case_7_Conditional_0_For_6_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
522
- i0.ɵɵrepeaterCreate(7, KptChart_Case_7_Conditional_0_For_8_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
538
+ i0.ɵɵrepeaterCreate(7, KptChart_Case_7_Conditional_0_For_8_Template, 1, 1, null, null, i0.ɵɵrepeaterTrackByIndex);
523
539
  i0.ɵɵelementEnd();
524
- i0.ɵɵconditionalCreate(9, KptChart_Case_7_Conditional_0_Conditional_9_Template, 4, 8, ":svg:g", 21);
525
- i0.ɵɵrepeaterCreate(10, KptChart_Case_7_Conditional_0_For_11_Template, 4, 1, ":svg:g", 22, _forTrack0);
526
- i0.ɵɵrepeaterCreate(12, KptChart_Case_7_Conditional_0_For_13_Template, 5, 6, ":svg:g", 23, _forTrack0);
527
- i0.ɵɵconditionalCreate(14, KptChart_Case_7_Conditional_0_Conditional_14_Template, 2, 0);
528
- i0.ɵɵrepeaterCreate(15, KptChart_Case_7_Conditional_0_For_16_Template, 2, 0, null, null, _forTrack0);
529
- i0.ɵɵrepeaterCreate(17, KptChart_Case_7_Conditional_0_For_18_Template, 1, 4, ":svg:circle", 24, _forTrack1);
530
- i0.ɵɵelementStart(19, "rect", 25);
531
- i0.ɵɵlistener("pointermove", function KptChart_Case_7_Conditional_0_Template_rect_pointermove_19_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onCategoryMove($event)); })("pointerleave", function KptChart_Case_7_Conditional_0_Template_rect_pointerleave_19_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.hideTip()); });
540
+ i0.ɵɵelementStart(9, "g", 21);
541
+ i0.ɵɵrepeaterCreate(10, KptChart_Case_7_Conditional_0_For_11_Template, 1, 4, ":svg:circle", 22, i0.ɵɵrepeaterTrackByIndex);
542
+ i0.ɵɵelementEnd();
543
+ i0.ɵɵconditionalCreate(12, KptChart_Case_7_Conditional_0_Conditional_12_Template, 4, 8, ":svg:g", 23);
544
+ i0.ɵɵrepeaterCreate(13, KptChart_Case_7_Conditional_0_For_14_Template, 4, 1, ":svg:g", 24, _forTrack0);
545
+ i0.ɵɵrepeaterCreate(15, KptChart_Case_7_Conditional_0_For_16_Template, 5, 6, ":svg:g", 25, _forTrack0);
546
+ i0.ɵɵconditionalCreate(17, KptChart_Case_7_Conditional_0_Conditional_17_Template, 2, 0);
547
+ i0.ɵɵrepeaterCreate(18, KptChart_Case_7_Conditional_0_For_19_Template, 2, 0, null, null, _forTrack0);
548
+ i0.ɵɵrepeaterCreate(20, KptChart_Case_7_Conditional_0_For_21_Template, 1, 4, ":svg:circle", 26, _forTrack1);
549
+ i0.ɵɵelementStart(22, "rect", 27);
550
+ i0.ɵɵlistener("pointermove", function KptChart_Case_7_Conditional_0_Template_rect_pointermove_22_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onCategoryMove($event)); })("pointerleave", function KptChart_Case_7_Conditional_0_Template_rect_pointerleave_22_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.hideTip()); });
532
551
  i0.ɵɵelementEnd();
533
552
  } if (rf & 2) {
534
553
  let tmp_4_0;
535
- let tmp_7_0;
536
- let tmp_10_0;
537
- const vm_r15 = ctx;
554
+ let tmp_8_0;
555
+ let tmp_11_0;
556
+ const vm_r17 = ctx;
538
557
  const ctx_r0 = i0.ɵɵnextContext(2);
539
558
  i0.ɵɵadvance();
540
- i0.ɵɵrepeater(vm_r15.grid);
559
+ i0.ɵɵrepeater(vm_r17.grid);
541
560
  i0.ɵɵadvance(2);
542
561
  i0.ɵɵconditional((tmp_4_0 = ctx_r0.crosshair()) ? 3 : -1, tmp_4_0);
543
562
  i0.ɵɵadvance(2);
544
- i0.ɵɵrepeater(vm_r15.valueLabels);
563
+ i0.ɵɵrepeater(vm_r17.valueLabels);
545
564
  i0.ɵɵadvance(2);
546
- i0.ɵɵrepeater(vm_r15.catLabels);
565
+ i0.ɵɵrepeater(vm_r17.catLabels);
566
+ i0.ɵɵadvance(3);
567
+ i0.ɵɵrepeater(vm_r17.catTicks);
547
568
  i0.ɵɵadvance(2);
548
- i0.ɵɵconditional((tmp_7_0 = ctx_r0.crosshair()) ? 9 : -1, tmp_7_0);
569
+ i0.ɵɵconditional((tmp_8_0 = ctx_r0.crosshair()) ? 12 : -1, tmp_8_0);
549
570
  i0.ɵɵadvance();
550
- i0.ɵɵrepeater(vm_r15.ghost);
571
+ i0.ɵɵrepeater(vm_r17.ghost);
551
572
  i0.ɵɵadvance(2);
552
- i0.ɵɵrepeater(vm_r15.series);
573
+ i0.ɵɵrepeater(vm_r17.series);
553
574
  i0.ɵɵadvance(2);
554
- i0.ɵɵconditional((tmp_10_0 = ctx_r0.sheen()) ? 14 : -1, tmp_10_0);
575
+ i0.ɵɵconditional((tmp_11_0 = ctx_r0.sheen()) ? 17 : -1, tmp_11_0);
555
576
  i0.ɵɵadvance();
556
- i0.ɵɵrepeater(vm_r15.ghost);
577
+ i0.ɵɵrepeater(vm_r17.ghost);
557
578
  i0.ɵɵadvance(2);
558
579
  i0.ɵɵrepeater(ctx_r0.ripple());
559
580
  i0.ɵɵadvance(2);
560
- i0.ɵɵattribute("x", vm_r15.plot.x - 12)("y", vm_r15.plot.y - 12)("width", vm_r15.plot.width + 24)("height", vm_r15.plot.height + 24);
581
+ i0.ɵɵattribute("x", vm_r17.plot.x - 12)("y", vm_r17.plot.y - 12)("width", vm_r17.plot.width + 24)("height", vm_r17.plot.height + 24);
561
582
  } }
562
583
  function KptChart_Case_7_Template(rf, ctx) { if (rf & 1) {
563
- i0.ɵɵconditionalCreate(0, KptChart_Case_7_Conditional_0_Template, 20, 7);
584
+ i0.ɵɵconditionalCreate(0, KptChart_Case_7_Conditional_0_Template, 23, 7);
564
585
  } if (rf & 2) {
565
586
  let tmp_1_0;
566
587
  const ctx_r0 = i0.ɵɵnextContext();
@@ -570,8 +591,8 @@ function KptChart_Case_8_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
570
591
  i0.ɵɵnamespaceSVG();
571
592
  i0.ɵɵelement(0, "line", 18);
572
593
  } if (rf & 2) {
573
- const g_r22 = ctx.$implicit;
574
- i0.ɵɵattribute("x1", g_r22.x1)("y1", g_r22.y1)("x2", g_r22.x2)("y2", g_r22.y2);
594
+ const g_r24 = ctx.$implicit;
595
+ i0.ɵɵattribute("x1", g_r24.x1)("y1", g_r24.y1)("x2", g_r24.x2)("y2", g_r24.y2);
575
596
  } }
576
597
  function KptChart_Case_8_Conditional_0_For_5_Template(rf, ctx) { if (rf & 1) {
577
598
  i0.ɵɵnamespaceSVG();
@@ -579,123 +600,129 @@ function KptChart_Case_8_Conditional_0_For_5_Template(rf, ctx) { if (rf & 1) {
579
600
  i0.ɵɵtext(1);
580
601
  i0.ɵɵelementEnd();
581
602
  } if (rf & 2) {
582
- const l_r23 = ctx.$implicit;
583
- i0.ɵɵattribute("x", l_r23.x)("y", l_r23.y)("text-anchor", l_r23.anchor);
603
+ const l_r25 = ctx.$implicit;
604
+ i0.ɵɵattribute("x", l_r25.x)("y", l_r25.y)("text-anchor", l_r25.anchor);
584
605
  i0.ɵɵadvance();
585
- i0.ɵɵtextInterpolate(l_r23.text);
606
+ i0.ɵɵtextInterpolate(l_r25.text);
586
607
  } }
587
- function KptChart_Case_8_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
608
+ function KptChart_Case_8_Conditional_0_For_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
588
609
  i0.ɵɵnamespaceSVG();
589
610
  i0.ɵɵelementStart(0, "text");
590
611
  i0.ɵɵtext(1);
591
612
  i0.ɵɵelementEnd();
592
613
  } if (rf & 2) {
593
- const l_r24 = ctx.$implicit;
594
- i0.ɵɵattribute("x", l_r24.x)("y", l_r24.y)("text-anchor", l_r24.anchor);
614
+ const l_r26 = i0.ɵɵnextContext().$implicit;
615
+ i0.ɵɵattribute("x", l_r26.x)("y", l_r26.y)("text-anchor", l_r26.anchor);
595
616
  i0.ɵɵadvance();
596
- i0.ɵɵtextInterpolate(l_r24.text);
617
+ i0.ɵɵtextInterpolate(l_r26.text);
618
+ } }
619
+ function KptChart_Case_8_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
620
+ i0.ɵɵconditionalCreate(0, KptChart_Case_8_Conditional_0_For_7_Conditional_0_Template, 2, 4, ":svg:text");
621
+ } if (rf & 2) {
622
+ const l_r26 = ctx.$implicit;
623
+ i0.ɵɵconditional(l_r26.visible ? 0 : -1);
597
624
  } }
598
625
  function KptChart_Case_8_Conditional_0_Conditional_8_For_2_Template(rf, ctx) { if (rf & 1) {
599
626
  i0.ɵɵnamespaceSVG();
600
- i0.ɵɵelement(0, "path", 42);
627
+ i0.ɵɵelement(0, "path", 45);
601
628
  } if (rf & 2) {
602
- const g_r25 = ctx.$implicit;
603
- i0.ɵɵattribute("d", g_r25.path);
629
+ const g_r27 = ctx.$implicit;
630
+ i0.ɵɵattribute("d", g_r27.path);
604
631
  } }
605
632
  function KptChart_Case_8_Conditional_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
606
633
  i0.ɵɵnamespaceSVG();
607
- i0.ɵɵelementStart(0, "g", 22);
608
- i0.ɵɵrepeaterCreate(1, KptChart_Case_8_Conditional_0_Conditional_8_For_2_Template, 1, 1, ":svg:path", 42, _forTrack0);
634
+ i0.ɵɵelementStart(0, "g", 24);
635
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_8_Conditional_0_Conditional_8_For_2_Template, 1, 1, ":svg:path", 45, _forTrack0);
609
636
  i0.ɵɵelementEnd();
610
637
  } if (rf & 2) {
611
- const vm_r26 = i0.ɵɵnextContext();
638
+ const vm_r28 = i0.ɵɵnextContext();
612
639
  i0.ɵɵadvance();
613
- i0.ɵɵrepeater(vm_r26.ghost);
640
+ i0.ɵɵrepeater(vm_r28.ghost);
614
641
  } }
615
642
  function KptChart_Case_8_Conditional_0_For_11_Template(rf, ctx) { if (rf & 1) {
616
643
  i0.ɵɵnamespaceSVG();
617
- i0.ɵɵelement(0, "path", 43);
644
+ i0.ɵɵelement(0, "path", 46);
618
645
  } if (rf & 2) {
619
- const b_r27 = ctx.$implicit;
646
+ const b_r29 = ctx.$implicit;
620
647
  const ctx_r0 = i0.ɵɵnextContext(3);
621
- i0.ɵɵstyleProp("fill", b_r27.color)("--%NS%kpt-chart-i", b_r27.index);
622
- i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(b_r27.key));
623
- i0.ɵɵattribute("d", b_r27.path);
648
+ i0.ɵɵstyleProp("fill", b_r29.color)("--%NS%kpt-chart-i", b_r29.index);
649
+ i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(b_r29.key));
650
+ i0.ɵɵattribute("d", b_r29.path);
624
651
  } }
625
652
  function KptChart_Case_8_Conditional_0_Conditional_12_For_2_Template(rf, ctx) { if (rf & 1) {
626
653
  i0.ɵɵnamespaceSVG();
627
- i0.ɵɵelement(0, "rect", 44);
654
+ i0.ɵɵelement(0, "rect", 47);
628
655
  } if (rf & 2) {
629
- const g_r28 = ctx.$implicit;
630
- i0.ɵɵattribute("data-kind", g_r28.delta.kind)("x", g_r28.delta.x)("y", g_r28.delta.y)("width", g_r28.delta.width)("height", g_r28.delta.height);
656
+ const g_r30 = ctx.$implicit;
657
+ i0.ɵɵattribute("data-kind", g_r30.delta.kind)("x", g_r30.delta.x)("y", g_r30.delta.y)("width", g_r30.delta.width)("height", g_r30.delta.height);
631
658
  } }
632
659
  function KptChart_Case_8_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
633
660
  i0.ɵɵnamespaceSVG();
634
- i0.ɵɵelementStart(0, "g", 22);
635
- i0.ɵɵrepeaterCreate(1, KptChart_Case_8_Conditional_0_Conditional_12_For_2_Template, 1, 5, ":svg:rect", 44, _forTrack0);
661
+ i0.ɵɵelementStart(0, "g", 24);
662
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_8_Conditional_0_Conditional_12_For_2_Template, 1, 5, ":svg:rect", 47, _forTrack0);
636
663
  i0.ɵɵelementEnd();
637
664
  } if (rf & 2) {
638
- const vm_r26 = i0.ɵɵnextContext();
665
+ const vm_r28 = i0.ɵɵnextContext();
639
666
  i0.ɵɵadvance();
640
- i0.ɵɵrepeater(vm_r26.ghost);
667
+ i0.ɵɵrepeater(vm_r28.ghost);
641
668
  } }
642
669
  function KptChart_Case_8_Conditional_0_Conditional_13_For_1_Template(rf, ctx) { if (rf & 1) {
643
670
  i0.ɵɵnamespaceSVG();
644
- i0.ɵɵelement(0, "path", 46);
671
+ i0.ɵɵelement(0, "path", 49);
645
672
  } if (rf & 2) {
646
- const b_r29 = ctx.$implicit;
647
- const sh_r30 = i0.ɵɵnextContext();
673
+ const b_r31 = ctx.$implicit;
674
+ const sh_r32 = i0.ɵɵnextContext();
648
675
  const ctx_r0 = i0.ɵɵnextContext(3);
649
- i0.ɵɵstyleProp("opacity", sh_r30.opacity * 0.7);
650
- i0.ɵɵattribute("d", b_r29.path)("fill", "url(#" + ctx_r0.sheenId + ")");
676
+ i0.ɵɵstyleProp("opacity", sh_r32.opacity * 0.7);
677
+ i0.ɵɵattribute("d", b_r31.path)("fill", "url(#" + ctx_r0.sheenId + ")");
651
678
  } }
652
679
  function KptChart_Case_8_Conditional_0_Conditional_13_Template(rf, ctx) { if (rf & 1) {
653
- i0.ɵɵrepeaterCreate(0, KptChart_Case_8_Conditional_0_Conditional_13_For_1_Template, 1, 4, ":svg:path", 45, _forTrack3);
680
+ i0.ɵɵrepeaterCreate(0, KptChart_Case_8_Conditional_0_Conditional_13_For_1_Template, 1, 4, ":svg:path", 48, _forTrack3);
654
681
  } if (rf & 2) {
655
- const vm_r26 = i0.ɵɵnextContext();
656
- i0.ɵɵrepeater(vm_r26.bars);
682
+ const vm_r28 = i0.ɵɵnextContext();
683
+ i0.ɵɵrepeater(vm_r28.bars);
657
684
  } }
658
685
  function KptChart_Case_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
659
- const _r21 = i0.ɵɵgetCurrentView();
686
+ const _r23 = i0.ɵɵgetCurrentView();
660
687
  i0.ɵɵnamespaceSVG();
661
688
  i0.ɵɵelementStart(0, "g", 17);
662
689
  i0.ɵɵrepeaterCreate(1, KptChart_Case_8_Conditional_0_For_2_Template, 1, 4, ":svg:line", 18, i0.ɵɵrepeaterTrackByIndex);
663
690
  i0.ɵɵelementEnd();
664
691
  i0.ɵɵelementStart(3, "g", 20);
665
692
  i0.ɵɵrepeaterCreate(4, KptChart_Case_8_Conditional_0_For_5_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
666
- i0.ɵɵrepeaterCreate(6, KptChart_Case_8_Conditional_0_For_7_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
693
+ i0.ɵɵrepeaterCreate(6, KptChart_Case_8_Conditional_0_For_7_Template, 1, 1, null, null, i0.ɵɵrepeaterTrackByIndex);
667
694
  i0.ɵɵelementEnd();
668
- i0.ɵɵconditionalCreate(8, KptChart_Case_8_Conditional_0_Conditional_8_Template, 3, 0, ":svg:g", 22);
669
- i0.ɵɵelementStart(9, "g", 40);
670
- i0.ɵɵrepeaterCreate(10, KptChart_Case_8_Conditional_0_For_11_Template, 1, 7, ":svg:path", 41, _forTrack3);
695
+ i0.ɵɵconditionalCreate(8, KptChart_Case_8_Conditional_0_Conditional_8_Template, 3, 0, ":svg:g", 24);
696
+ i0.ɵɵelementStart(9, "g", 43);
697
+ i0.ɵɵrepeaterCreate(10, KptChart_Case_8_Conditional_0_For_11_Template, 1, 7, ":svg:path", 44, _forTrack3);
671
698
  i0.ɵɵelementEnd();
672
- i0.ɵɵconditionalCreate(12, KptChart_Case_8_Conditional_0_Conditional_12_Template, 3, 0, ":svg:g", 22);
699
+ i0.ɵɵconditionalCreate(12, KptChart_Case_8_Conditional_0_Conditional_12_Template, 3, 0, ":svg:g", 24);
673
700
  i0.ɵɵconditionalCreate(13, KptChart_Case_8_Conditional_0_Conditional_13_Template, 2, 0);
674
- i0.ɵɵelementStart(14, "rect", 25);
675
- i0.ɵɵlistener("pointermove", function KptChart_Case_8_Conditional_0_Template_rect_pointermove_14_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onCategoryMove($event)); })("pointerleave", function KptChart_Case_8_Conditional_0_Template_rect_pointerleave_14_listener() { i0.ɵɵrestoreView(_r21); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.hideTip()); });
701
+ i0.ɵɵelementStart(14, "rect", 27);
702
+ i0.ɵɵlistener("pointermove", function KptChart_Case_8_Conditional_0_Template_rect_pointermove_14_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onCategoryMove($event)); })("pointerleave", function KptChart_Case_8_Conditional_0_Template_rect_pointerleave_14_listener() { i0.ɵɵrestoreView(_r23); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.hideTip()); });
676
703
  i0.ɵɵelementEnd();
677
704
  } if (rf & 2) {
678
705
  let tmp_10_0;
679
- const vm_r26 = ctx;
706
+ const vm_r28 = ctx;
680
707
  const ctx_r0 = i0.ɵɵnextContext(2);
681
708
  i0.ɵɵadvance();
682
- i0.ɵɵrepeater(vm_r26.grid);
709
+ i0.ɵɵrepeater(vm_r28.grid);
683
710
  i0.ɵɵadvance(3);
684
- i0.ɵɵrepeater(vm_r26.valueLabels);
711
+ i0.ɵɵrepeater(vm_r28.valueLabels);
685
712
  i0.ɵɵadvance(2);
686
- i0.ɵɵrepeater(vm_r26.catLabels);
713
+ i0.ɵɵrepeater(vm_r28.catLabels);
687
714
  i0.ɵɵadvance(2);
688
- i0.ɵɵconditional(vm_r26.ghost.length ? 8 : -1);
715
+ i0.ɵɵconditional(vm_r28.ghost.length ? 8 : -1);
689
716
  i0.ɵɵadvance();
690
- i0.ɵɵattribute("data-orientation", vm_r26.orientation);
717
+ i0.ɵɵattribute("data-orientation", vm_r28.orientation);
691
718
  i0.ɵɵadvance();
692
- i0.ɵɵrepeater(vm_r26.bars);
719
+ i0.ɵɵrepeater(vm_r28.bars);
693
720
  i0.ɵɵadvance(2);
694
- i0.ɵɵconditional(vm_r26.ghost.length ? 12 : -1);
721
+ i0.ɵɵconditional(vm_r28.ghost.length ? 12 : -1);
695
722
  i0.ɵɵadvance();
696
723
  i0.ɵɵconditional((tmp_10_0 = ctx_r0.sheen()) ? 13 : -1, tmp_10_0);
697
724
  i0.ɵɵadvance();
698
- i0.ɵɵattribute("x", vm_r26.plot.x)("y", vm_r26.plot.y)("width", vm_r26.plot.width)("height", vm_r26.plot.height);
725
+ i0.ɵɵattribute("x", vm_r28.plot.x)("y", vm_r28.plot.y)("width", vm_r28.plot.width)("height", vm_r28.plot.height);
699
726
  } }
700
727
  function KptChart_Case_8_Template(rf, ctx) { if (rf & 1) {
701
728
  i0.ɵɵconditionalCreate(0, KptChart_Case_8_Conditional_0_Template, 15, 8);
@@ -706,17 +733,17 @@ function KptChart_Case_8_Template(rf, ctx) { if (rf & 1) {
706
733
  } }
707
734
  function KptChart_Case_9_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
708
735
  i0.ɵɵnamespaceSVG();
709
- i0.ɵɵelement(0, "path", 47);
736
+ i0.ɵɵelement(0, "path", 50);
710
737
  } if (rf & 2) {
711
- const r_r31 = ctx.$implicit;
712
- i0.ɵɵattribute("d", r_r31);
738
+ const r_r33 = ctx.$implicit;
739
+ i0.ɵɵattribute("d", r_r33);
713
740
  } }
714
741
  function KptChart_Case_9_Conditional_0_For_4_Template(rf, ctx) { if (rf & 1) {
715
742
  i0.ɵɵnamespaceSVG();
716
743
  i0.ɵɵelement(0, "line", 18);
717
744
  } if (rf & 2) {
718
- const a_r32 = ctx.$implicit;
719
- i0.ɵɵattribute("x1", a_r32.x1)("y1", a_r32.y1)("x2", a_r32.x2)("y2", a_r32.y2);
745
+ const a_r34 = ctx.$implicit;
746
+ i0.ɵɵattribute("x1", a_r34.x1)("y1", a_r34.y1)("x2", a_r34.x2)("y2", a_r34.y2);
720
747
  } }
721
748
  function KptChart_Case_9_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
722
749
  i0.ɵɵnamespaceSVG();
@@ -724,60 +751,60 @@ function KptChart_Case_9_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
724
751
  i0.ɵɵtext(1);
725
752
  i0.ɵɵelementEnd();
726
753
  } if (rf & 2) {
727
- const l_r33 = ctx.$implicit;
728
- i0.ɵɵattribute("x", l_r33.x)("y", l_r33.y)("text-anchor", l_r33.anchor);
754
+ const l_r35 = ctx.$implicit;
755
+ i0.ɵɵattribute("x", l_r35.x)("y", l_r35.y)("text-anchor", l_r35.anchor);
729
756
  i0.ɵɵadvance();
730
- i0.ɵɵtextInterpolate(l_r33.text);
757
+ i0.ɵɵtextInterpolate(l_r35.text);
731
758
  } }
732
759
  function KptChart_Case_9_Conditional_0_For_9_For_3_Template(rf, ctx) { if (rf & 1) {
733
- const _r34 = i0.ɵɵgetCurrentView();
760
+ const _r36 = i0.ɵɵgetCurrentView();
734
761
  i0.ɵɵnamespaceSVG();
735
- i0.ɵɵelementStart(0, "circle", 52);
736
- i0.ɵɵlistener("pointerenter", function KptChart_Case_9_Conditional_0_For_9_For_3_Template_circle_pointerenter_0_listener() { const p_r35 = i0.ɵɵrestoreView(_r34).$implicit; const s_r36 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.showTip(p_r35.x, p_r35.y, s_r36.name, p_r35.label, p_r35.value, s_r36.color)); })("pointerleave", function KptChart_Case_9_Conditional_0_For_9_For_3_Template_circle_pointerleave_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.hideTip()); });
762
+ i0.ɵɵelementStart(0, "circle", 55);
763
+ i0.ɵɵlistener("pointerenter", function KptChart_Case_9_Conditional_0_For_9_For_3_Template_circle_pointerenter_0_listener() { const p_r37 = i0.ɵɵrestoreView(_r36).$implicit; const s_r38 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.showTip(p_r37.x, p_r37.y, s_r38.name, p_r37.label, p_r37.value, s_r38.color)); })("pointerleave", function KptChart_Case_9_Conditional_0_For_9_For_3_Template_circle_pointerleave_0_listener() { i0.ɵɵrestoreView(_r36); const ctx_r0 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r0.hideTip()); });
737
764
  i0.ɵɵelementEnd();
738
765
  } if (rf & 2) {
739
- const p_r35 = ctx.$implicit;
740
- const $index_r37 = ctx.$index;
741
- const s_r36 = i0.ɵɵnextContext().$implicit;
742
- i0.ɵɵstyleProp("fill", s_r36.color)("--%NS%kpt-chart-i", $index_r37);
743
- i0.ɵɵattribute("cx", p_r35.x)("cy", p_r35.y);
766
+ const p_r37 = ctx.$implicit;
767
+ const $index_r39 = ctx.$index;
768
+ const s_r38 = i0.ɵɵnextContext().$implicit;
769
+ i0.ɵɵstyleProp("fill", s_r38.color)("--%NS%kpt-chart-i", $index_r39);
770
+ i0.ɵɵattribute("cx", p_r37.x)("cy", p_r37.y);
744
771
  } }
745
772
  function KptChart_Case_9_Conditional_0_For_9_Template(rf, ctx) { if (rf & 1) {
746
773
  i0.ɵɵnamespaceSVG();
747
- i0.ɵɵelementStart(0, "g", 49);
748
- i0.ɵɵelement(1, "path", 50);
749
- i0.ɵɵrepeaterCreate(2, KptChart_Case_9_Conditional_0_For_9_For_3_Template, 1, 6, ":svg:circle", 51, i0.ɵɵrepeaterTrackByIndex);
774
+ i0.ɵɵelementStart(0, "g", 52);
775
+ i0.ɵɵelement(1, "path", 53);
776
+ i0.ɵɵrepeaterCreate(2, KptChart_Case_9_Conditional_0_For_9_For_3_Template, 1, 6, ":svg:circle", 54, i0.ɵɵrepeaterTrackByIndex);
750
777
  i0.ɵɵelementEnd();
751
778
  } if (rf & 2) {
752
- const s_r36 = ctx.$implicit;
779
+ const s_r38 = ctx.$implicit;
753
780
  const ctx_r0 = i0.ɵɵnextContext(3);
754
- i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(s_r36.key));
781
+ i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(s_r38.key));
755
782
  i0.ɵɵadvance();
756
- i0.ɵɵstyleProp("fill", s_r36.color)("stroke", s_r36.color);
757
- i0.ɵɵattribute("d", s_r36.polygon);
783
+ i0.ɵɵstyleProp("fill", s_r38.color)("stroke", s_r38.color);
784
+ i0.ɵɵattribute("d", s_r38.polygon);
758
785
  i0.ɵɵadvance();
759
- i0.ɵɵrepeater(s_r36.points);
786
+ i0.ɵɵrepeater(s_r38.points);
760
787
  } }
761
788
  function KptChart_Case_9_Conditional_0_Template(rf, ctx) { if (rf & 1) {
762
789
  i0.ɵɵnamespaceSVG();
763
790
  i0.ɵɵelementStart(0, "g", 17);
764
- i0.ɵɵrepeaterCreate(1, KptChart_Case_9_Conditional_0_For_2_Template, 1, 1, ":svg:path", 47, i0.ɵɵrepeaterTrackByIndex);
791
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_9_Conditional_0_For_2_Template, 1, 1, ":svg:path", 50, i0.ɵɵrepeaterTrackByIndex);
765
792
  i0.ɵɵrepeaterCreate(3, KptChart_Case_9_Conditional_0_For_4_Template, 1, 4, ":svg:line", 18, i0.ɵɵrepeaterTrackByIndex);
766
793
  i0.ɵɵelementEnd();
767
794
  i0.ɵɵelementStart(5, "g", 20);
768
795
  i0.ɵɵrepeaterCreate(6, KptChart_Case_9_Conditional_0_For_7_Template, 2, 4, ":svg:text", null, i0.ɵɵrepeaterTrackByIndex);
769
796
  i0.ɵɵelementEnd();
770
- i0.ɵɵrepeaterCreate(8, KptChart_Case_9_Conditional_0_For_9_Template, 4, 7, ":svg:g", 48, _forTrack0);
797
+ i0.ɵɵrepeaterCreate(8, KptChart_Case_9_Conditional_0_For_9_Template, 4, 7, ":svg:g", 51, _forTrack0);
771
798
  } if (rf & 2) {
772
- const vm_r38 = ctx;
799
+ const vm_r40 = ctx;
773
800
  i0.ɵɵadvance();
774
- i0.ɵɵrepeater(vm_r38.rings);
801
+ i0.ɵɵrepeater(vm_r40.rings);
775
802
  i0.ɵɵadvance(2);
776
- i0.ɵɵrepeater(vm_r38.axisLines);
803
+ i0.ɵɵrepeater(vm_r40.axisLines);
777
804
  i0.ɵɵadvance(3);
778
- i0.ɵɵrepeater(vm_r38.axisLabels);
805
+ i0.ɵɵrepeater(vm_r40.axisLabels);
779
806
  i0.ɵɵadvance(2);
780
- i0.ɵɵrepeater(vm_r38.series);
807
+ i0.ɵɵrepeater(vm_r40.series);
781
808
  } }
782
809
  function KptChart_Case_9_Template(rf, ctx) { if (rf & 1) {
783
810
  i0.ɵɵconditionalCreate(0, KptChart_Case_9_Conditional_0_Template, 10, 0);
@@ -787,30 +814,30 @@ function KptChart_Case_9_Template(rf, ctx) { if (rf & 1) {
787
814
  i0.ɵɵconditional((tmp_1_0 = ctx_r0.radarVm()) ? 0 : -1, tmp_1_0);
788
815
  } }
789
816
  function KptChart_Case_10_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
790
- const _r39 = i0.ɵɵgetCurrentView();
817
+ const _r41 = i0.ɵɵgetCurrentView();
791
818
  i0.ɵɵnamespaceSVG();
792
- i0.ɵɵelementStart(0, "path", 55);
793
- i0.ɵɵlistener("pointerenter", function KptChart_Case_10_Conditional_0_For_2_Template_path_pointerenter_0_listener() { const sl_r40 = i0.ɵɵrestoreView(_r39).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.showTip(sl_r40.tipX, sl_r40.tipY, sl_r40.label, "", sl_r40.value, sl_r40.color)); })("pointerleave", function KptChart_Case_10_Conditional_0_For_2_Template_path_pointerleave_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.hideTip()); });
819
+ i0.ɵɵelementStart(0, "path", 58);
820
+ i0.ɵɵlistener("pointerenter", function KptChart_Case_10_Conditional_0_For_2_Template_path_pointerenter_0_listener() { const sl_r42 = i0.ɵɵrestoreView(_r41).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.showTip(sl_r42.tipX, sl_r42.tipY, sl_r42.label, "", sl_r42.value, sl_r42.color)); })("pointerleave", function KptChart_Case_10_Conditional_0_For_2_Template_path_pointerleave_0_listener() { i0.ɵɵrestoreView(_r41); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.hideTip()); });
794
821
  i0.ɵɵelementEnd();
795
822
  } if (rf & 2) {
796
- const sl_r40 = ctx.$implicit;
797
- const $index_r41 = ctx.$index;
823
+ const sl_r42 = ctx.$implicit;
824
+ const $index_r43 = ctx.$index;
798
825
  const ctx_r0 = i0.ɵɵnextContext(3);
799
- i0.ɵɵstyleProp("fill", sl_r40.color)("--%NS%kpt-chart-i", $index_r41);
800
- i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(sl_r40.key));
801
- i0.ɵɵattribute("d", sl_r40.path);
826
+ i0.ɵɵstyleProp("fill", sl_r42.color)("--%NS%kpt-chart-i", $index_r43);
827
+ i0.ɵɵclassProp("kpt-chart__series--dim", ctx_r0.dim(sl_r42.key));
828
+ i0.ɵɵattribute("d", sl_r42.path);
802
829
  } }
803
830
  function KptChart_Case_10_Conditional_0_Template(rf, ctx) { if (rf & 1) {
804
831
  i0.ɵɵnamespaceSVG();
805
- i0.ɵɵelementStart(0, "g", 53);
806
- i0.ɵɵrepeaterCreate(1, KptChart_Case_10_Conditional_0_For_2_Template, 1, 7, ":svg:path", 54, _forTrack0);
832
+ i0.ɵɵelementStart(0, "g", 56);
833
+ i0.ɵɵrepeaterCreate(1, KptChart_Case_10_Conditional_0_For_2_Template, 1, 7, ":svg:path", 57, _forTrack0);
807
834
  i0.ɵɵelementEnd();
808
835
  } if (rf & 2) {
809
836
  i0.ɵɵadvance();
810
837
  i0.ɵɵrepeater(ctx);
811
838
  } }
812
839
  function KptChart_Case_10_Template(rf, ctx) { if (rf & 1) {
813
- i0.ɵɵconditionalCreate(0, KptChart_Case_10_Conditional_0_Template, 3, 0, ":svg:g", 53);
840
+ i0.ɵɵconditionalCreate(0, KptChart_Case_10_Conditional_0_Template, 3, 0, ":svg:g", 56);
814
841
  } if (rf & 2) {
815
842
  let tmp_1_0;
816
843
  const ctx_r0 = i0.ɵɵnextContext();
@@ -831,36 +858,36 @@ function KptChart_For_20_Template(rf, ctx) { if (rf & 1) {
831
858
  i0.ɵɵtext(1);
832
859
  i0.ɵɵelementEnd();
833
860
  } if (rf & 2) {
834
- const col_r42 = ctx.$implicit;
861
+ const col_r44 = ctx.$implicit;
835
862
  i0.ɵɵadvance();
836
- i0.ɵɵtextInterpolate(col_r42);
863
+ i0.ɵɵtextInterpolate(col_r44);
837
864
  } }
838
865
  function KptChart_For_23_For_4_Template(rf, ctx) { if (rf & 1) {
839
866
  i0.ɵɵelementStart(0, "td");
840
867
  i0.ɵɵtext(1);
841
868
  i0.ɵɵelementEnd();
842
869
  } if (rf & 2) {
843
- const value_r43 = ctx.$implicit;
870
+ const value_r45 = ctx.$implicit;
844
871
  i0.ɵɵadvance();
845
- i0.ɵɵtextInterpolate(value_r43);
872
+ i0.ɵɵtextInterpolate(value_r45);
846
873
  } }
847
874
  function KptChart_For_23_Template(rf, ctx) { if (rf & 1) {
848
- i0.ɵɵelementStart(0, "tr")(1, "th", 56);
875
+ i0.ɵɵelementStart(0, "tr")(1, "th", 59);
849
876
  i0.ɵɵtext(2);
850
877
  i0.ɵɵelementEnd();
851
878
  i0.ɵɵrepeaterCreate(3, KptChart_For_23_For_4_Template, 2, 1, "td", null, i0.ɵɵrepeaterTrackByIndex);
852
879
  i0.ɵɵelementEnd();
853
880
  } if (rf & 2) {
854
- const row_r44 = ctx.$implicit;
881
+ const row_r46 = ctx.$implicit;
855
882
  i0.ɵɵadvance(2);
856
- i0.ɵɵtextInterpolate(row_r44.label);
883
+ i0.ɵɵtextInterpolate(row_r46.label);
857
884
  i0.ɵɵadvance();
858
- i0.ɵɵrepeater(row_r44.values);
885
+ i0.ɵɵrepeater(row_r46.values);
859
886
  } }
860
887
  function KptChart_Conditional_25_Template(rf, ctx) { if (rf & 1) {
861
- const _r45 = i0.ɵɵgetCurrentView();
862
- i0.ɵɵelementStart(0, "kpt-chart-legend", 57);
863
- i0.ɵɵlistener("seriesToggle", function KptChart_Conditional_25_Template_kpt_chart_legend_seriesToggle_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onToggle($event)); })("highlight", function KptChart_Conditional_25_Template_kpt_chart_legend_highlight_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onHighlight($event)); });
888
+ const _r47 = i0.ɵɵgetCurrentView();
889
+ i0.ɵɵelementStart(0, "kpt-chart-legend", 60);
890
+ i0.ɵɵlistener("seriesToggle", function KptChart_Conditional_25_Template_kpt_chart_legend_seriesToggle_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onToggle($event)); })("highlight", function KptChart_Conditional_25_Template_kpt_chart_legend_highlight_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onHighlight($event)); });
864
891
  i0.ɵɵelementEnd();
865
892
  } if (rf & 2) {
866
893
  const ctx_r0 = i0.ɵɵnextContext();
@@ -874,6 +901,29 @@ const HORIZONTAL_INSETS = { top: 12, right: 16, bottom: 28, left: 76 };
874
901
  const SHEEN_HALF = 90;
875
902
  /** Zjechanie z punktu na sąsiedni to `leave` i zaraz `enter` - dymek czeka chwilę, zamiast gasnąć. */
876
903
  const TIP_HIDE_DELAY = 60;
904
+ /** Wysokość linii etykiety kategorii na osi pionowej (słupki poziome) - jednostki viewBoxa. */
905
+ const CATEGORY_LINE = 12;
906
+ /**
907
+ * Etykiety osi poziomej: wszystkie, jeśli się mieszczą, inaczej równy podział 9/5/3/2
908
+ * (`axisLabelIndices`). Pełna nazwa każdej kategorii zostaje w pigułce prowadnicy i w dymku.
909
+ */
910
+ function bottomLabels(labels, centers, y, width) {
911
+ const sizes = labels.map((l) => estimateLabelWidth(l));
912
+ const shown = new Set(axisLabelIndices(centers, sizes));
913
+ return labels.map((text, i) => ({
914
+ at: centers[i],
915
+ x: clampLabel(centers[i], sizes[i], 0, width),
916
+ y,
917
+ text,
918
+ anchor: 'middle',
919
+ visible: shown.has(i),
920
+ }));
921
+ }
922
+ /** Etykiety osi pionowej (słupki poziome): ten sam podział, rozmiarem jest wysokość linii. */
923
+ function sideLabels(labels, centers, x) {
924
+ const shown = new Set(axisLabelIndices(centers, centers.map(() => CATEGORY_LINE), 2));
925
+ return labels.map((text, i) => ({ at: centers[i], x, y: centers[i] + 3, text, anchor: 'end', visible: shown.has(i) }));
926
+ }
877
927
  /**
878
928
  * Wykres SVG w pełni konfigurowalny przez obiekt `config`.
879
929
  * Typy: line, bar, pie, doughnut, polarArea, radar. Sygnały + zoneless,
@@ -1018,37 +1068,43 @@ class KptChart {
1018
1068
  return null;
1019
1069
  const h = this.hidden();
1020
1070
  const active = c.series.map((s, i) => ({ s, i })).filter(({ s }) => !h.has('ser:' + s.name));
1021
- const values = [];
1022
- for (const { s } of active)
1023
- values.push(...s.data);
1024
- const [mn, mx] = extent(values.length ? values : [0]);
1071
+ const rows = active.map(({ s }) => s.data);
1025
1072
  const domain = this.frame().domain;
1026
- const scale = domain ? domainScale(domain.target, domain.min, domain.max) : niceScale(Math.min(0, mn), Math.max(0, mx), 5);
1073
+ const scale = domain
1074
+ ? domainScale(domain.target, domain.min, domain.max)
1075
+ : chartScale(rows, { valueAxis: c.valueAxis, stacked: c.stacked });
1076
+ // Stos: punkty serii na narastającej sumie, pasmo od linii serii pod nią.
1077
+ const stack = c.stacked ? stackSeries(rows) : null;
1027
1078
  const plot = plotArea(this.width(), this.height(), VERTICAL_INSETS);
1028
1079
  const yScale = linearScale(scale.min, scale.max, plot.y + plot.height, plot.y);
1029
1080
  const n = c.labels.length;
1030
1081
  const xAt = (i) => (n > 1 ? plot.x + (i / (n - 1)) * plot.width : plot.x + plot.width / 2);
1031
- const baseline = yScale(0);
1082
+ // Punkt nie wychodzi poza oś - przypięte `valueAxis.min`/`max` mogą uciąć wartość.
1083
+ const yAt = (v) => yScale(Math.min(scale.max, Math.max(scale.min, v)));
1084
+ const baseline = yScale(axisBase(scale));
1032
1085
  const interpolation = c.interpolation ?? 'linear';
1033
- const series = active.map(({ s, i }) => {
1034
- const pts = s.data.map((v, idx) => ({ x: xAt(idx), y: yScale(v), value: v, label: c.labels[idx] ?? '' }));
1086
+ const series = active.map(({ s, i }, k) => {
1087
+ const pts = s.data.map((v, idx) => ({ x: xAt(idx), y: yAt(stack?.top[k]?.[idx] ?? v), value: v, label: c.labels[idx] ?? '' }));
1088
+ const floor = stack ? s.data.map((_, idx) => ({ x: xAt(idx), y: yAt(stack.base[k]?.[idx] ?? 0) })) : null;
1035
1089
  const color = seriesColor(s.color, i);
1036
1090
  return {
1037
1091
  key: 'ser:' + s.name,
1038
1092
  name: s.name,
1039
1093
  color,
1040
1094
  path: linePath(pts, interpolation),
1041
- area: c.area ? areaPath(pts, baseline, interpolation) : null,
1095
+ area: c.area ? (floor ? bandPath(pts, floor, interpolation) : areaPath(pts, baseline, interpolation)) : null,
1042
1096
  points: pts,
1043
1097
  };
1044
1098
  });
1045
1099
  // Duch poprzedniego stanu w bieżącej skali, odcinki zmiany i różnice nad punktami.
1046
1100
  const ghostState = this.frame().ghost;
1101
+ // W stosie duch stoi na sumach poprzedniego stanu, tak jak bieżące punkty.
1102
+ const ghostTops = ghostState && c.stacked ? stackSeries(active.map(({ i }) => ghostState.prev[i] ?? [])).top : null;
1047
1103
  const ghost = ghostState
1048
1104
  ? active.map(({ s, i }, k) => {
1049
1105
  const prev = ghostState.prev[i] ?? [];
1050
1106
  const next = ghostState.next[i] ?? [];
1051
- const gpts = prev.map((v, idx) => ({ x: xAt(idx), y: yScale(v) }));
1107
+ const gpts = (ghostTops?.[k] ?? prev).map((v, idx) => ({ x: xAt(idx), y: yAt(v) }));
1052
1108
  const cur = series[k]?.points ?? [];
1053
1109
  return {
1054
1110
  // numer przejścia w kluczu: nowe przejście = nowe elementy, więc ich animacja CSS rusza od nowa
@@ -1071,7 +1127,8 @@ class KptChart {
1071
1127
  series,
1072
1128
  grid: scale.ticks.map((t) => ({ x1: plot.x, y1: yScale(t), x2: plot.x + plot.width, y2: yScale(t) })),
1073
1129
  valueLabels: scale.ticks.map((t) => ({ x: plot.x - 8, y: yScale(t) + 3, text: formatNumber(t), anchor: 'end' })),
1074
- catLabels: c.labels.map((l, idx) => ({ x: xAt(idx), y: plot.y + plot.height + 18, text: l, anchor: 'middle' })),
1130
+ catLabels: bottomLabels(c.labels, c.labels.map((_, idx) => xAt(idx)), plot.y + plot.height + 18, this.width()),
1131
+ catTicks: c.labels.map((_, idx) => ({ x: xAt(idx), y: plot.y + plot.height })),
1075
1132
  showPoints: c.points ?? true,
1076
1133
  ghost,
1077
1134
  };
@@ -1088,7 +1145,7 @@ class KptChart {
1088
1145
  const plot = plotArea(this.width(), this.height(), orientation === 'vertical' ? VERTICAL_INSETS : HORIZONTAL_INSETS);
1089
1146
  const domain = this.frame().domain;
1090
1147
  const radius = c.borderRadius ?? 4;
1091
- const layout = barLayout(active.map(({ s }) => s.data), c.labels.length, plot, orientation, radius, domain ? domainScale(domain.target, domain.min, domain.max) : undefined);
1148
+ const layout = barLayout(active.map(({ s }) => s.data), c.labels.length, plot, orientation, radius, domain ? domainScale(domain.target, domain.min, domain.max) : undefined, { stacked: c.stacked, valueAxis: c.valueAxis });
1092
1149
  const colors = active.map(({ s, i }) => seriesColor(s.color, i));
1093
1150
  const names = active.map(({ s }) => s.name);
1094
1151
  const bars = layout.bars.map((b, order) => {
@@ -1113,7 +1170,7 @@ class KptChart {
1113
1170
  if (ghostState) {
1114
1171
  const prevRows = active.map(({ i }) => ghostState.prev[i] ?? []);
1115
1172
  const nextRows = active.map(({ i }) => ghostState.next[i] ?? []);
1116
- const ghostLayout = barLayout(prevRows, c.labels.length, plot, orientation, radius, layout.scale);
1173
+ const ghostLayout = barLayout(prevRows, c.labels.length, plot, orientation, radius, layout.scale, { stacked: c.stacked });
1117
1174
  ghost = ghostLayout.bars.map((g, k) => {
1118
1175
  const cur = layout.bars[k] ?? g;
1119
1176
  const kind = deltaKind(prevRows[g.seriesIndex]?.[g.categoryIndex] ?? 0, nextRows[g.seriesIndex]?.[g.categoryIndex] ?? 0);
@@ -1133,7 +1190,7 @@ class KptChart {
1133
1190
  bars,
1134
1191
  grid: layout.ticks.map((t) => ({ x1: plot.x, y1: t.pos, x2: plot.x + plot.width, y2: t.pos })),
1135
1192
  valueLabels: layout.ticks.map((t) => ({ x: plot.x - 8, y: t.pos + 3, text: formatNumber(t.value), anchor: 'end' })),
1136
- catLabels: c.labels.map((l, idx) => ({ x: cat.center(idx), y: plot.y + plot.height + 18, text: l, anchor: 'middle' })),
1193
+ catLabels: bottomLabels(c.labels, c.labels.map((_, idx) => cat.center(idx)), plot.y + plot.height + 18, this.width()),
1137
1194
  ghost,
1138
1195
  };
1139
1196
  }
@@ -1143,7 +1200,7 @@ class KptChart {
1143
1200
  bars,
1144
1201
  grid: layout.ticks.map((t) => ({ x1: t.pos, y1: plot.y, x2: t.pos, y2: plot.y + plot.height })),
1145
1202
  valueLabels: layout.ticks.map((t) => ({ x: t.pos, y: plot.y + plot.height + 18, text: formatNumber(t.value), anchor: 'middle' })),
1146
- catLabels: c.labels.map((l, idx) => ({ x: plot.x - 8, y: cat.center(idx) + 3, text: l, anchor: 'end' })),
1203
+ catLabels: sideLabels(c.labels, c.labels.map((_, idx) => cat.center(idx)), plot.x - 8),
1147
1204
  ghost,
1148
1205
  };
1149
1206
  }, /* @ts-ignore */
@@ -1221,16 +1278,18 @@ class KptChart {
1221
1278
  if (!cat)
1222
1279
  return null;
1223
1280
  // Prowadnica i pigułka jadą razem z dymkiem.
1224
- const x = this.frame().tip?.x ?? cat.x;
1281
+ const x = this.frame().tip?.x ?? cat.at;
1225
1282
  const w = Math.max(28, cat.text.length * 7 + 16);
1283
+ // Pigułka przy skrajnej kategorii przesuwa się do środka zamiast wyjść poza viewBox.
1284
+ const labelX = clampLabel(x, w, 0, this.width());
1226
1285
  return {
1227
1286
  x,
1228
1287
  y1: vm.plot.y,
1229
1288
  y2: vm.plot.y + vm.plot.height,
1230
1289
  text: cat.text,
1231
- labelX: x,
1290
+ labelX,
1232
1291
  labelY: cat.y,
1233
- pillX: x - w / 2,
1292
+ pillX: labelX - w / 2,
1234
1293
  pillY: cat.y - 13,
1235
1294
  pillW: w,
1236
1295
  pillH: 18,
@@ -1260,7 +1319,7 @@ class KptChart {
1260
1319
  const p = new DOMPoint(event.clientX, event.clientY).matrixTransform(matrix.inverse());
1261
1320
  const line = this.lineVm();
1262
1321
  if (line) {
1263
- const idx = nearestIndex(line.catLabels.map((l) => l.x), p.x);
1322
+ const idx = nearestIndex(line.catLabels.map((l) => l.at), p.x);
1264
1323
  if (this.keepTip(idx))
1265
1324
  return;
1266
1325
  const points = line.series.map((s) => ({ s, pt: s.points[idx] })).filter((e) => e.pt);
@@ -1279,7 +1338,7 @@ class KptChart {
1279
1338
  if (!bars)
1280
1339
  return;
1281
1340
  const vertical = bars.orientation === 'vertical';
1282
- const idx = nearestIndex(bars.catLabels.map((l) => (vertical ? l.x : l.y - 3)), vertical ? p.x : p.y);
1341
+ const idx = nearestIndex(bars.catLabels.map((l) => l.at), vertical ? p.x : p.y);
1283
1342
  if (this.keepTip(idx))
1284
1343
  return;
1285
1344
  const group = bars.bars.filter((b) => b.cat === idx);
@@ -1287,8 +1346,8 @@ class KptChart {
1287
1346
  return;
1288
1347
  const label = this.config().labels[idx] ?? '';
1289
1348
  const center = bars.catLabels[idx];
1290
- const x = vertical ? (center?.x ?? group[0].tipX) : Math.max(...group.map((b) => b.tipX));
1291
- const y = vertical ? Math.min(...group.map((b) => b.tipY)) : (center ? center.y - 3 : group[0].tipY);
1349
+ const x = vertical ? (center?.at ?? group[0].tipX) : Math.max(...group.map((b) => b.tipX));
1350
+ const y = vertical ? Math.min(...group.map((b) => b.tipY)) : (center?.at ?? group[0].tipY);
1292
1351
  this.openTip(x, y, label, group.map((b) => this.row(b.name, label, b.value, b.color)), idx);
1293
1352
  }
1294
1353
  /** Wycinki i radar: dymek jednego elementu pod kursorem. */
@@ -1372,8 +1431,11 @@ class KptChart {
1372
1431
  const withAxis = next.type === 'line' || next.type === 'bar';
1373
1432
  const hidden = this.hidden();
1374
1433
  const visible = (rows) => rows.filter((_, i) => !hidden.has('ser:' + (next.series[i]?.name ?? '')));
1434
+ const axis = { valueAxis: next.valueAxis, stacked: next.stacked };
1435
+ // Skala trzymana na czas ducha obejmuje oba stany - z wierszy już złożonych w stos.
1436
+ const held = [...scaleRows(visible(from), next.stacked), ...scaleRows(visible(to), next.stacked)];
1375
1437
  const scales = withAxis
1376
- ? { start: dataScale(visible(from)), hold: dataScale([holdDomain(visible(from), visible(to))]), end: dataScale(visible(to)) }
1438
+ ? { start: dataScale(visible(from), axis), hold: chartScale(held, { valueAxis: next.valueAxis }), end: dataScale(visible(to), axis) }
1377
1439
  : null;
1378
1440
  this.motion.transition(from, to, { delta: withAxis && next.animation?.delta !== false, scales });
1379
1441
  }
@@ -1381,7 +1443,7 @@ class KptChart {
1381
1443
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: KptChart, selectors: [["kpt-chart"]], hostAttrs: [1, "kpt-chart-host"], hostVars: 8, hostBindings: function KptChart_HostBindings(rf, ctx) { if (rf & 2) {
1382
1444
  i0.ɵɵstyleProp("--%NS%kpt-chart-duration", ctx.anim().duration + "ms")("--%NS%kpt-chart-stagger", ctx.anim().stagger + "ms")("--%NS%kpt-chart-delay", ctx.anim().delay + "ms");
1383
1445
  i0.ɵɵclassProp("kpt-chart--no-anim", !ctx.anim().enabled);
1384
- } }, inputs: { config: [1, "config"], width: [1, "width"], height: [1, "height"] }, decls: 26, vars: 14, consts: [[1, "kpt-chart"], [1, "kpt-chart__title", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__subtitle", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__body"], [1, "kpt-chart__canvas"], ["role", "img", "preserveAspectRatio", "xMidYMid meet", 1, "kpt-chart__svg"], [1, "kpt-chart__sr", 3, "id"], [1, "kpt-chart__sr"], ["scope", "col"], [3, "state"], [3, "items", "position", "align", "pointStyle", "title"], [1, "kpt-chart__title"], [1, "kpt-chart__subtitle"], ["gradientUnits", "userSpaceOnUse"], ["offset", "0", "stop-opacity", "0", 1, "kpt-chart__sheen-stop"], ["offset", "0.5", "stop-opacity", "0.95", 1, "kpt-chart__sheen-stop"], ["offset", "1", "stop-opacity", "0", 1, "kpt-chart__sheen-stop"], [1, "kpt-chart__grid"], [1, "kpt-chart__gridline"], [1, "kpt-chart__crosshair"], [1, "kpt-chart__axis"], [1, "kpt-chart__cat-active"], ["aria-hidden", "true", 1, "kpt-chart__ghost"], [1, "kpt-chart__series", 3, "kpt-chart__series--dim"], ["r", "5", "aria-hidden", "true", 1, "kpt-chart__ripple", 3, "stroke"], [1, "kpt-chart__hover", 3, "pointermove", "pointerleave"], ["text-anchor", "middle"], [1, "kpt-chart__ghost-line"], [1, "kpt-chart__delta"], [1, "kpt-chart__series"], [1, "kpt-chart__area", 3, "fill"], ["pathLength", "1", 1, "kpt-chart__line"], [1, "kpt-chart__area"], ["r", "4", 1, "kpt-chart__point", 3, "kpt-chart__point--active", "fill", "--%NS%kpt-chart-i"], ["r", "4", 1, "kpt-chart__point"], ["aria-hidden", "true", 1, "kpt-chart__sheen-line", 3, "opacity"], ["aria-hidden", "true", 1, "kpt-chart__sheen-line"], ["text-anchor", "middle", "aria-hidden", "true", 1, "kpt-chart__chip", 3, "--%NS%kpt-chart-i"], ["text-anchor", "middle", "aria-hidden", "true", 1, "kpt-chart__chip"], ["r", "5", "aria-hidden", "true", 1, "kpt-chart__ripple"], [1, "kpt-chart__bars"], [1, "kpt-chart__bar", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__ghost-bar"], [1, "kpt-chart__bar"], ["rx", "2", 1, "kpt-chart__delta-bar"], ["aria-hidden", "true", 1, "kpt-chart__sheen-bar", 3, "opacity"], ["aria-hidden", "true", 1, "kpt-chart__sheen-bar"], [1, "kpt-chart__ring"], [1, "kpt-chart__series", "kpt-chart__radar", 3, "kpt-chart__series--dim"], [1, "kpt-chart__series", "kpt-chart__radar"], [1, "kpt-chart__radar-area"], ["r", "4", 1, "kpt-chart__point", 3, "fill", "--%NS%kpt-chart-i"], ["r", "4", 1, "kpt-chart__point", 3, "pointerenter", "pointerleave"], [1, "kpt-chart__slices"], [1, "kpt-chart__slice", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__slice", 3, "pointerenter", "pointerleave"], ["scope", "row"], [3, "seriesToggle", "highlight", "items", "position", "align", "pointStyle", "title"]], template: function KptChart_Template(rf, ctx) { if (rf & 1) {
1446
+ } }, inputs: { config: [1, "config"], width: [1, "width"], height: [1, "height"] }, decls: 26, vars: 14, consts: [[1, "kpt-chart"], [1, "kpt-chart__title", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__subtitle", 3, "text-align", "color", "font-family", "font-size", "font-weight", "padding-top", "padding-bottom"], [1, "kpt-chart__body"], [1, "kpt-chart__canvas"], ["role", "img", "preserveAspectRatio", "xMidYMid meet", 1, "kpt-chart__svg"], [1, "kpt-chart__sr", 3, "id"], [1, "kpt-chart__sr"], ["scope", "col"], [3, "state"], [3, "items", "position", "align", "pointStyle", "title"], [1, "kpt-chart__title"], [1, "kpt-chart__subtitle"], ["gradientUnits", "userSpaceOnUse"], ["offset", "0", "stop-opacity", "0", 1, "kpt-chart__sheen-stop"], ["offset", "0.5", "stop-opacity", "0.95", 1, "kpt-chart__sheen-stop"], ["offset", "1", "stop-opacity", "0", 1, "kpt-chart__sheen-stop"], [1, "kpt-chart__grid"], [1, "kpt-chart__gridline"], [1, "kpt-chart__crosshair"], [1, "kpt-chart__axis"], ["aria-hidden", "true", 1, "kpt-chart__cat-ticks"], ["r", "2", 1, "kpt-chart__cat-tick", 3, "kpt-chart__cat-tick--active"], [1, "kpt-chart__cat-active"], ["aria-hidden", "true", 1, "kpt-chart__ghost"], [1, "kpt-chart__series", 3, "kpt-chart__series--dim"], ["r", "5", "aria-hidden", "true", 1, "kpt-chart__ripple", 3, "stroke"], [1, "kpt-chart__hover", 3, "pointermove", "pointerleave"], ["r", "2", 1, "kpt-chart__cat-tick"], ["text-anchor", "middle"], [1, "kpt-chart__ghost-line"], [1, "kpt-chart__delta"], [1, "kpt-chart__series"], [1, "kpt-chart__area", 3, "fill"], ["pathLength", "1", 1, "kpt-chart__line"], [1, "kpt-chart__area"], ["r", "4", 1, "kpt-chart__point", 3, "kpt-chart__point--active", "fill", "--%NS%kpt-chart-i"], ["r", "4", 1, "kpt-chart__point"], ["aria-hidden", "true", 1, "kpt-chart__sheen-line", 3, "opacity"], ["aria-hidden", "true", 1, "kpt-chart__sheen-line"], ["text-anchor", "middle", "aria-hidden", "true", 1, "kpt-chart__chip", 3, "--%NS%kpt-chart-i"], ["text-anchor", "middle", "aria-hidden", "true", 1, "kpt-chart__chip"], ["r", "5", "aria-hidden", "true", 1, "kpt-chart__ripple"], [1, "kpt-chart__bars"], [1, "kpt-chart__bar", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__ghost-bar"], [1, "kpt-chart__bar"], ["rx", "2", 1, "kpt-chart__delta-bar"], ["aria-hidden", "true", 1, "kpt-chart__sheen-bar", 3, "opacity"], ["aria-hidden", "true", 1, "kpt-chart__sheen-bar"], [1, "kpt-chart__ring"], [1, "kpt-chart__series", "kpt-chart__radar", 3, "kpt-chart__series--dim"], [1, "kpt-chart__series", "kpt-chart__radar"], [1, "kpt-chart__radar-area"], ["r", "4", 1, "kpt-chart__point", 3, "fill", "--%NS%kpt-chart-i"], ["r", "4", 1, "kpt-chart__point", 3, "pointerenter", "pointerleave"], [1, "kpt-chart__slices"], [1, "kpt-chart__slice", 3, "kpt-chart__series--dim", "fill", "--%NS%kpt-chart-i"], [1, "kpt-chart__slice", 3, "pointerenter", "pointerleave"], ["scope", "row"], [3, "seriesToggle", "highlight", "items", "position", "align", "pointStyle", "title"]], template: function KptChart_Template(rf, ctx) { if (rf & 1) {
1385
1447
  i0.ɵɵelementStart(0, "div", 0);
1386
1448
  i0.ɵɵconditionalCreate(1, KptChart_Conditional_1_Template, 2, 15, "div", 1);
1387
1449
  i0.ɵɵconditionalCreate(2, KptChart_Conditional_2_Template, 2, 15, "div", 2);
@@ -1436,7 +1498,7 @@ class KptChart {
1436
1498
  i0.ɵɵproperty("state", ctx.tooltip());
1437
1499
  i0.ɵɵadvance();
1438
1500
  i0.ɵɵconditional(ctx.legendOpts().display ? 25 : -1);
1439
- } }, dependencies: [KptChartLegend, KptChartTooltip], styles: ["@layer kpt.components{.kpt-chart-host{display:block;--%NS%kpt-chart-duration: .4s;--%NS%kpt-chart-stagger: 60ms;--%NS%kpt-chart-delay: 0ms;--%NS%kpt-chart-ease: cubic-bezier(.25, 1, .5, 1);--%NS%kpt-chart-spring: linear(0, .0521, .1747, .3278, .4847, .6288, .7513, .849, .9224, .9741, 1.0077, 1.0272, 1.0364, 1.0384, 1.0359, 1.031, 1.025, 1.019, 1.0136, 1.009, 1.0054, 1.0027, 1.0008, .9996, .9989, .9986, .9985, .9986, .9988, .9991, .9993, .9995, .9997, .9998, .9999, 1, 1, 1, 1.0001, 1.0001, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--%NS%kpt-space-2, .5rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__title{font-size:var(--%NS%kpt-font-size-lg, 1.125rem);font-weight:var(--%NS%kpt-font-weight-semibold, 600);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--%NS%kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--%NS%kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--%NS%kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--%NS%kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--%NS%kpt-color-surface);font-size:11px;font-weight:var(--%NS%kpt-font-weight-medium, 500);font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--%NS%kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--%NS%kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--%NS%kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hover{fill:transparent;pointer-events:all}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--%NS%kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--%NS%kpt-font-size-sm, .875rem);font-weight:var(--%NS%kpt-font-weight-medium, 500);color:var(--%NS%kpt-color-on-surface-muted);margin-bottom:var(--%NS%kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--%NS%kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--%NS%kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--%NS%kpt-color-surface-raised, var(--%NS%kpt-color-surface));color:var(--%NS%kpt-color-on-surface);border:1px solid var(--%NS%kpt-color-border);border-radius:var(--%NS%kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-3, .75rem);font-size:var(--%NS%kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip{transform-origin:50% 100%;transition:opacity calc(.16s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-ease),scale calc(.16s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-ease),visibility 0s}.kpt-chart__tooltip--hidden{opacity:0;scale:.96;visibility:hidden;transition:opacity calc(.14s * var(--%NS%kpt-motion-scale, 1)) ease-in,scale calc(.14s * var(--%NS%kpt-motion-scale, 1)) ease-in,visibility 0s calc(.14s * var(--%NS%kpt-motion-scale, 1))}.kpt-chart__tooltip-label{display:inline-block}.kpt-chart__reels{display:inline-flex;font-variant-numeric:tabular-nums}.kpt-chart__reel{display:inline-block;height:1.25em;line-height:1.25em;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,var(--%NS%kpt-color-on-surface) 12%,var(--%NS%kpt-color-on-surface) 88%,transparent);mask-image:linear-gradient(transparent,var(--%NS%kpt-color-on-surface) 12%,var(--%NS%kpt-color-on-surface) 88%,transparent)}.kpt-chart__reel-strip{display:flex;flex-direction:column;translate:0 calc(var(--%NS%kpt-chart-digit, 0) * -1.25em);transition:translate calc(.52s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-spring)}.kpt-chart__reel-strip>span,.kpt-chart__reel-text{height:1.25em;line-height:1.25em;white-space:pre}.kpt-chart__tooltip-title{font-weight:var(--%NS%kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--%NS%kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--%NS%kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--%NS%kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-duration) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart__ghost{pointer-events:none}.kpt-chart__ghost-line,.kpt-chart__ghost-bar{fill:none;stroke:var(--%NS%kpt-color-on-surface-muted);stroke-dasharray:4 4;animation:kpt-chart-ghost calc(1.7s * var(--%NS%kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__ghost-line{stroke-width:1.5}.kpt-chart__ghost-bar{stroke-width:1;stroke-dasharray:3 3}.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip{--%NS%_kpt-chart-delta: var(--%NS%kpt-chart-delta-up, var(--%NS%kpt-color-success))}[data-kind=down]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){--%NS%_kpt-chart-delta: var(--%NS%kpt-chart-delta-down, var(--%NS%kpt-color-danger))}[data-kind=same]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){display:none}.kpt-chart__delta{stroke:var(--%NS%_kpt-chart-delta);stroke-width:2;stroke-linecap:round;animation:kpt-chart-ghost calc(1.7s * var(--%NS%kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__delta-bar{fill:var(--%NS%_kpt-chart-delta);animation:kpt-chart-ghost-soft calc(1.7s * var(--%NS%kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__chip{fill:var(--%NS%_kpt-chart-delta);font-size:10px;font-weight:var(--%NS%kpt-font-weight-bold, 700);font-family:var(--%NS%kpt-font-family-sans);font-variant-numeric:tabular-nums;pointer-events:none;animation:kpt-chart-chip calc(1.3s * var(--%NS%kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc((.38s + var(--%NS%kpt-chart-i, 0) * .04s) * var(--%NS%kpt-motion-scale, 1)) both}.kpt-chart__sheen-stop{stop-color:var(--%NS%kpt-chart-sheen, var(--%NS%kpt-color-info))}.kpt-chart__sheen-line{fill:none;stroke-width:5;stroke-linecap:round;filter:blur(1.2px);pointer-events:none}.kpt-chart__sheen-bar{mix-blend-mode:screen;pointer-events:none}[data-theme=dark] .kpt-chart__sheen-bar{mix-blend-mode:normal}.kpt-chart__ripple{fill:none;stroke-width:2;transform-box:fill-box;transform-origin:center;pointer-events:none;animation:kpt-chart-ripple calc(.52s * var(--%NS%kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc(.24s * var(--%NS%kpt-motion-scale, 1)) both}@keyframes kpt-chart-ghost{0%,50%{opacity:1}to{opacity:0}}@keyframes kpt-chart-ghost-soft{0%,50%{opacity:.45}to{opacity:0}}@keyframes kpt-chart-chip{0%{opacity:0;translate:0 6px}25%,75%{opacity:1;translate:0 0}to{opacity:0;translate:0 -6px}}@keyframes kpt-chart-ripple{0%{opacity:.55;scale:1}to{opacity:0;scale:3.2}}.kpt-chart--%NS%no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip{transition:none}}.kpt-chart--%NS%no-anim :is(.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip){transition:none}.kpt-chart__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"], encapsulation: 2 }); }
1501
+ } }, dependencies: [KptChartLegend, KptChartTooltip], styles: ["@layer kpt.components{.kpt-chart-host{display:block;--%NS%kpt-chart-duration: .4s;--%NS%kpt-chart-stagger: 60ms;--%NS%kpt-chart-delay: 0ms;--%NS%kpt-chart-ease: cubic-bezier(.25, 1, .5, 1);--%NS%kpt-chart-spring: linear(0, .0521, .1747, .3278, .4847, .6288, .7513, .849, .9224, .9741, 1.0077, 1.0272, 1.0364, 1.0384, 1.0359, 1.031, 1.025, 1.019, 1.0136, 1.009, 1.0054, 1.0027, 1.0008, .9996, .9989, .9986, .9985, .9986, .9988, .9991, .9993, .9995, .9997, .9998, .9999, 1, 1, 1, 1.0001, 1.0001, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--%NS%kpt-space-2, .5rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__title{font-size:var(--%NS%kpt-font-size-lg, 1.125rem);font-weight:var(--%NS%kpt-font-weight-semibold, 600);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--%NS%kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--%NS%kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--%NS%kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--%NS%kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-tick{r:2px;fill:var(--%NS%kpt-color-border-strong);pointer-events:none;transition:r calc(.15s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-ease),fill calc(.15s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-ease)}.kpt-chart__cat-tick--active{r:3.5px;fill:var(--%NS%kpt-color-on-surface)}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--%NS%kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--%NS%kpt-color-surface);font-size:11px;font-weight:var(--%NS%kpt-font-weight-medium, 500);font-family:var(--%NS%kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--%NS%kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--%NS%kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--%NS%kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hover{fill:transparent;pointer-events:all}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--%NS%kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--%NS%kpt-font-size-sm, .875rem);font-weight:var(--%NS%kpt-font-weight-medium, 500);color:var(--%NS%kpt-color-on-surface-muted);margin-bottom:var(--%NS%kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--%NS%kpt-font-size-sm, .875rem);color:var(--%NS%kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--%NS%kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--%NS%kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--%NS%kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--%NS%kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--%NS%kpt-color-surface-raised, var(--%NS%kpt-color-surface));color:var(--%NS%kpt-color-on-surface);border:1px solid var(--%NS%kpt-color-border);border-radius:var(--%NS%kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--%NS%kpt-space-2, .5rem) var(--%NS%kpt-space-3, .75rem);font-size:var(--%NS%kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip{transform-origin:50% 100%;transition:opacity calc(.16s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-ease),scale calc(.16s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-ease),visibility 0s}.kpt-chart__tooltip--hidden{opacity:0;scale:.96;visibility:hidden;transition:opacity calc(.14s * var(--%NS%kpt-motion-scale, 1)) ease-in,scale calc(.14s * var(--%NS%kpt-motion-scale, 1)) ease-in,visibility 0s calc(.14s * var(--%NS%kpt-motion-scale, 1))}.kpt-chart__tooltip-label{display:inline-block}.kpt-chart__reels{display:inline-flex;font-variant-numeric:tabular-nums}.kpt-chart__reel{display:inline-block;height:1.25em;line-height:1.25em;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,var(--%NS%kpt-color-on-surface) 12%,var(--%NS%kpt-color-on-surface) 88%,transparent);mask-image:linear-gradient(transparent,var(--%NS%kpt-color-on-surface) 12%,var(--%NS%kpt-color-on-surface) 88%,transparent)}.kpt-chart__reel-strip{display:flex;flex-direction:column;translate:0 calc(var(--%NS%kpt-chart-digit, 0) * -1.25em);transition:translate calc(.52s * var(--%NS%kpt-motion-scale, 1)) var(--%NS%kpt-chart-spring)}.kpt-chart__reel-strip>span,.kpt-chart__reel-text{height:1.25em;line-height:1.25em;white-space:pre}.kpt-chart__tooltip-title{font-weight:var(--%NS%kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--%NS%kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--%NS%kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--%NS%kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--%NS%kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-duration) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) calc(var(--%NS%kpt-chart-delay) + var(--%NS%kpt-chart-i, 0) * var(--%NS%kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--%NS%kpt-chart-duration) var(--%NS%kpt-chart-ease) var(--%NS%kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart__ghost{pointer-events:none}.kpt-chart__ghost-line,.kpt-chart__ghost-bar{fill:none;stroke:var(--%NS%kpt-color-on-surface-muted);stroke-dasharray:4 4;animation:kpt-chart-ghost calc(1.7s * var(--%NS%kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__ghost-line{stroke-width:1.5}.kpt-chart__ghost-bar{stroke-width:1;stroke-dasharray:3 3}.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip{--%NS%_kpt-chart-delta: var(--%NS%kpt-chart-delta-up, var(--%NS%kpt-color-success))}[data-kind=down]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){--%NS%_kpt-chart-delta: var(--%NS%kpt-chart-delta-down, var(--%NS%kpt-color-danger))}[data-kind=same]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){display:none}.kpt-chart__delta{stroke:var(--%NS%_kpt-chart-delta);stroke-width:2;stroke-linecap:round;animation:kpt-chart-ghost calc(1.7s * var(--%NS%kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__delta-bar{fill:var(--%NS%_kpt-chart-delta);animation:kpt-chart-ghost-soft calc(1.7s * var(--%NS%kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__chip{fill:var(--%NS%_kpt-chart-delta);font-size:10px;font-weight:var(--%NS%kpt-font-weight-bold, 700);font-family:var(--%NS%kpt-font-family-sans);font-variant-numeric:tabular-nums;pointer-events:none;animation:kpt-chart-chip calc(1.3s * var(--%NS%kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc((.38s + var(--%NS%kpt-chart-i, 0) * .04s) * var(--%NS%kpt-motion-scale, 1)) both}.kpt-chart__sheen-stop{stop-color:var(--%NS%kpt-chart-sheen, var(--%NS%kpt-color-info))}.kpt-chart__sheen-line{fill:none;stroke-width:5;stroke-linecap:round;filter:blur(1.2px);pointer-events:none}.kpt-chart__sheen-bar{mix-blend-mode:screen;pointer-events:none}[data-theme=dark] .kpt-chart__sheen-bar{mix-blend-mode:normal}.kpt-chart__ripple{fill:none;stroke-width:2;transform-box:fill-box;transform-origin:center;pointer-events:none;animation:kpt-chart-ripple calc(.52s * var(--%NS%kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc(.24s * var(--%NS%kpt-motion-scale, 1)) both}@keyframes kpt-chart-ghost{0%,50%{opacity:1}to{opacity:0}}@keyframes kpt-chart-ghost-soft{0%,50%{opacity:.45}to{opacity:0}}@keyframes kpt-chart-chip{0%{opacity:0;translate:0 6px}25%,75%{opacity:1;translate:0 0}to{opacity:0;translate:0 -6px}}@keyframes kpt-chart-ripple{0%{opacity:.55;scale:1}to{opacity:0;scale:3.2}}.kpt-chart--%NS%no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip{transition:none}}.kpt-chart--%NS%no-anim :is(.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip){transition:none}.kpt-chart__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"], encapsulation: 2 }); }
1440
1502
  }
1441
1503
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KptChart, [{
1442
1504
  type: Component,
@@ -1446,9 +1508,9 @@ class KptChart {
1446
1508
  '[style.--kpt-chart-duration]': "anim().duration + 'ms'",
1447
1509
  '[style.--kpt-chart-stagger]': "anim().stagger + 'ms'",
1448
1510
  '[style.--kpt-chart-delay]': "anim().delay + 'ms'",
1449
- }, template: "<div class=\"kpt-chart\" [attr.data-legend]=\"legendOpts().display ? legendOpts().position : null\">\n @if (titleOpts()?.display && titleOpts()?.text) {\n <div\n class=\"kpt-chart__title\"\n [style.text-align]=\"titleStyle()\"\n [style.color]=\"titleOpts()?.color\"\n [style.font-family]=\"titleOpts()?.font?.family\"\n [style.font-size.px]=\"titleOpts()?.font?.size\"\n [style.font-weight]=\"titleOpts()?.font?.weight\"\n [style.padding-top.px]=\"titleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"titleOpts()?.padding?.bottom\"\n >\n {{ titleOpts()?.text }}\n </div>\n }\n @if (subtitleOpts()?.display && subtitleOpts()?.text) {\n <div\n class=\"kpt-chart__subtitle\"\n [style.text-align]=\"subtitleStyle()\"\n [style.color]=\"subtitleOpts()?.color\"\n [style.font-family]=\"subtitleOpts()?.font?.family\"\n [style.font-size.px]=\"subtitleOpts()?.font?.size\"\n [style.font-weight]=\"subtitleOpts()?.font?.weight\"\n [style.padding-top.px]=\"subtitleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"subtitleOpts()?.padding?.bottom\"\n >\n {{ subtitleOpts()?.text }}\n </div>\n }\n\n <div class=\"kpt-chart__body\">\n <div class=\"kpt-chart__canvas\">\n <svg\n [attr.viewBox]=\"'0 0 ' + width() + ' ' + height()\"\n class=\"kpt-chart__svg\"\n role=\"img\"\n [attr.aria-label]=\"accessibleName()\"\n [attr.aria-describedby]=\"config().description ? descId : null\"\n preserveAspectRatio=\"xMidYMid meet\"\n >\n @if (sheen(); as sh) {\n <defs>\n <linearGradient [attr.id]=\"sheenId\" gradientUnits=\"userSpaceOnUse\" [attr.x1]=\"sh.x1\" [attr.x2]=\"sh.x2\" [attr.y1]=\"sh.y1\" [attr.y2]=\"sh.y2\">\n <stop offset=\"0\" class=\"kpt-chart__sheen-stop\" stop-opacity=\"0\" />\n <stop offset=\"0.5\" class=\"kpt-chart__sheen-stop\" stop-opacity=\"0.95\" />\n <stop offset=\"1\" class=\"kpt-chart__sheen-stop\" stop-opacity=\"0\" />\n </linearGradient>\n </defs>\n }\n @switch (type()) {\n @case ('line') {\n @if (lineVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n @if (crosshair(); as ch) {\n <line class=\"kpt-chart__crosshair\" [attr.x1]=\"ch.x\" [attr.y1]=\"ch.y1\" [attr.x2]=\"ch.x\" [attr.y2]=\"ch.y2\" />\n }\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @if (crosshair(); as ch) {\n <g class=\"kpt-chart__cat-active\">\n <rect [attr.x]=\"ch.pillX\" [attr.y]=\"ch.pillY\" [attr.width]=\"ch.pillW\" [attr.height]=\"ch.pillH\" [attr.rx]=\"ch.pillH / 2\" />\n <text [attr.x]=\"ch.labelX\" [attr.y]=\"ch.labelY\" text-anchor=\"middle\">{{ ch.text }}</text>\n </g>\n }\n <!-- Duch poprzedniego stanu i odcinki zmiany - tylko na czas przej\u015Bcia danych. -->\n @for (g of vm.ghost; track g.key) {\n <g class=\"kpt-chart__ghost\" aria-hidden=\"true\">\n <path class=\"kpt-chart__ghost-line\" [attr.d]=\"g.path\" />\n @for (t of g.ticks; track $index) {\n <line class=\"kpt-chart__delta\" [attr.data-kind]=\"t.kind\" [attr.x1]=\"t.x\" [attr.x2]=\"t.x\" [attr.y1]=\"t.y1\" [attr.y2]=\"t.y2\" />\n }\n </g>\n }\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n @if (s.area) {\n <path class=\"kpt-chart__area\" [attr.d]=\"s.area\" [style.fill]=\"s.color\" />\n }\n <path class=\"kpt-chart__line\" [attr.d]=\"s.path\" [style.stroke]=\"s.color\" pathLength=\"1\" />\n @for (p of s.points; track $index) {\n @if (vm.showPoints) {\n <circle\n class=\"kpt-chart__point\"\n [class.kpt-chart__point--active]=\"activeIndex() === $index\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n />\n }\n }\n </g>\n }\n @if (sheen(); as sh) {\n @for (s of vm.series; track s.key) {\n <path class=\"kpt-chart__sheen-line\" [attr.d]=\"s.path\" [attr.stroke]=\"'url(#' + sheenId + ')'\" [style.opacity]=\"sh.opacity\" aria-hidden=\"true\" />\n }\n }\n @for (g of vm.ghost; track g.key) {\n @for (c of g.chips; track c.index) {\n <text\n class=\"kpt-chart__chip\"\n [attr.data-kind]=\"c.kind\"\n [attr.x]=\"c.x\"\n [attr.y]=\"c.y\"\n text-anchor=\"middle\"\n [style.--kpt-chart-i]=\"c.index\"\n aria-hidden=\"true\"\n >{{ c.text }}</text>\n }\n }\n @for (r of ripple(); track r.id) {\n <circle class=\"kpt-chart__ripple\" [attr.cx]=\"r.x\" [attr.cy]=\"r.y\" r=\"5\" [style.stroke]=\"r.color\" aria-hidden=\"true\" />\n }\n <!-- Najechanie: najbli\u017Csza kategoria w ca\u0142ym obszarze wykresu - dymek jedzie mi\u0119dzy punktami bez ga\u015Bni\u0119cia. -->\n <rect\n class=\"kpt-chart__hover\"\n [attr.x]=\"vm.plot.x - 12\"\n [attr.y]=\"vm.plot.y - 12\"\n [attr.width]=\"vm.plot.width + 24\"\n [attr.height]=\"vm.plot.height + 24\"\n (pointermove)=\"onCategoryMove($event)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n }\n\n @case ('bar') {\n @if (barVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @if (vm.ghost.length) {\n <g class=\"kpt-chart__ghost\" aria-hidden=\"true\">\n @for (g of vm.ghost; track g.key) {\n <path class=\"kpt-chart__ghost-bar\" [attr.d]=\"g.path\" />\n }\n </g>\n }\n <g class=\"kpt-chart__bars\" [attr.data-orientation]=\"vm.orientation\">\n @for (b of vm.bars; track b.key + '#' + b.index) {\n <path\n class=\"kpt-chart__bar\"\n [class.kpt-chart__series--dim]=\"dim(b.key)\"\n [attr.d]=\"b.path\"\n [style.fill]=\"b.color\"\n [style.--kpt-chart-i]=\"b.index\"\n />\n }\n </g>\n @if (vm.ghost.length) {\n <g class=\"kpt-chart__ghost\" aria-hidden=\"true\">\n @for (g of vm.ghost; track g.key) {\n <rect\n class=\"kpt-chart__delta-bar\"\n [attr.data-kind]=\"g.delta.kind\"\n [attr.x]=\"g.delta.x\"\n [attr.y]=\"g.delta.y\"\n [attr.width]=\"g.delta.width\"\n [attr.height]=\"g.delta.height\"\n rx=\"2\"\n />\n }\n </g>\n }\n @if (sheen(); as sh) {\n @for (b of vm.bars; track b.key + '#' + b.index) {\n <path class=\"kpt-chart__sheen-bar\" [attr.d]=\"b.path\" [attr.fill]=\"'url(#' + sheenId + ')'\" [style.opacity]=\"sh.opacity * 0.7\" aria-hidden=\"true\" />\n }\n }\n <rect\n class=\"kpt-chart__hover\"\n [attr.x]=\"vm.plot.x\"\n [attr.y]=\"vm.plot.y\"\n [attr.width]=\"vm.plot.width\"\n [attr.height]=\"vm.plot.height\"\n (pointermove)=\"onCategoryMove($event)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n }\n\n @case ('radar') {\n @if (radarVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (r of vm.rings; track $index) {\n <path class=\"kpt-chart__ring\" [attr.d]=\"r\" />\n }\n @for (a of vm.axisLines; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"a.x1\" [attr.y1]=\"a.y1\" [attr.x2]=\"a.x2\" [attr.y2]=\"a.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.axisLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series kpt-chart__radar\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n <path class=\"kpt-chart__radar-area\" [attr.d]=\"s.polygon\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" />\n @for (p of s.points; track $index) {\n <circle\n class=\"kpt-chart__point\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(p.x, p.y, s.name, p.label, p.value, s.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n\n @default {\n @if (pieVm(); as slices) {\n <g class=\"kpt-chart__slices\">\n @for (sl of slices; track sl.key) {\n <path\n class=\"kpt-chart__slice\"\n [class.kpt-chart__series--dim]=\"dim(sl.key)\"\n [attr.d]=\"sl.path\"\n [style.fill]=\"sl.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(sl.tipX, sl.tipY, sl.label, '', sl.value, sl.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n </svg>\n @if (config().description) {\n <p class=\"kpt-chart__sr\" [id]=\"descId\">{{ config().description }}</p>\n }\n <!-- Dane wykresu dla czytnika: tabela ukryta wizualnie, nie przez display:none. -->\n <table class=\"kpt-chart__sr\">\n <caption>{{ i18n.t('chart.dataTable') }}: {{ accessibleName() }}</caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ i18n.t('chart.category') }}</th>\n @for (col of dataTable().columns; track $index) {\n <th scope=\"col\">{{ col }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of dataTable().rows; track $index) {\n <tr>\n <th scope=\"row\">{{ row.label }}</th>\n @for (value of row.values; track $index) {\n <td>{{ value }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <kpt-chart-tooltip [state]=\"tooltip()\" />\n </div>\n\n @if (legendOpts().display) {\n <kpt-chart-legend\n [items]=\"legendItems()\"\n [position]=\"legendOpts().position\"\n [align]=\"legendOpts().align\"\n [pointStyle]=\"legendOpts().pointStyle\"\n [title]=\"legendOpts().title\"\n (seriesToggle)=\"onToggle($event)\"\n (highlight)=\"onHighlight($event)\"\n />\n }\n </div>\n</div>\n", styles: ["@layer kpt.components{.kpt-chart-host{display:block;--kpt-chart-duration: .4s;--kpt-chart-stagger: 60ms;--kpt-chart-delay: 0ms;--kpt-chart-ease: cubic-bezier(.25, 1, .5, 1);--kpt-chart-spring: linear(0, .0521, .1747, .3278, .4847, .6288, .7513, .849, .9224, .9741, 1.0077, 1.0272, 1.0364, 1.0384, 1.0359, 1.031, 1.025, 1.019, 1.0136, 1.009, 1.0054, 1.0027, 1.0008, .9996, .9989, .9986, .9985, .9986, .9988, .9991, .9993, .9995, .9997, .9998, .9999, 1, 1, 1, 1.0001, 1.0001, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--kpt-space-2, .5rem);color:var(--kpt-color-on-surface)}.kpt-chart__title{font-size:var(--kpt-font-size-lg, 1.125rem);font-weight:var(--kpt-font-weight-semibold, 600);color:var(--kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--kpt-color-surface);font-size:11px;font-weight:var(--kpt-font-weight-medium, 500);font-family:var(--kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hover{fill:transparent;pointer-events:all}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--kpt-font-size-sm, .875rem);font-weight:var(--kpt-font-weight-medium, 500);color:var(--kpt-color-on-surface-muted);margin-bottom:var(--kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--kpt-space-2, .5rem) var(--kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--kpt-color-surface-raised, var(--kpt-color-surface));color:var(--kpt-color-on-surface);border:1px solid var(--kpt-color-border);border-radius:var(--kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--kpt-space-2, .5rem) var(--kpt-space-3, .75rem);font-size:var(--kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip{transform-origin:50% 100%;transition:opacity calc(.16s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease),scale calc(.16s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease),visibility 0s}.kpt-chart__tooltip--hidden{opacity:0;scale:.96;visibility:hidden;transition:opacity calc(.14s * var(--kpt-motion-scale, 1)) ease-in,scale calc(.14s * var(--kpt-motion-scale, 1)) ease-in,visibility 0s calc(.14s * var(--kpt-motion-scale, 1))}.kpt-chart__tooltip-label{display:inline-block}.kpt-chart__reels{display:inline-flex;font-variant-numeric:tabular-nums}.kpt-chart__reel{display:inline-block;height:1.25em;line-height:1.25em;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,var(--kpt-color-on-surface) 12%,var(--kpt-color-on-surface) 88%,transparent);mask-image:linear-gradient(transparent,var(--kpt-color-on-surface) 12%,var(--kpt-color-on-surface) 88%,transparent)}.kpt-chart__reel-strip{display:flex;flex-direction:column;translate:0 calc(var(--kpt-chart-digit, 0) * -1.25em);transition:translate calc(.52s * var(--kpt-motion-scale, 1)) var(--kpt-chart-spring)}.kpt-chart__reel-strip>span,.kpt-chart__reel-text{height:1.25em;line-height:1.25em;white-space:pre}.kpt-chart__tooltip-title{font-weight:var(--kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-duration) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart__ghost{pointer-events:none}.kpt-chart__ghost-line,.kpt-chart__ghost-bar{fill:none;stroke:var(--kpt-color-on-surface-muted);stroke-dasharray:4 4;animation:kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__ghost-line{stroke-width:1.5}.kpt-chart__ghost-bar{stroke-width:1;stroke-dasharray:3 3}.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip{--_kpt-chart-delta: var(--kpt-chart-delta-up, var(--kpt-color-success))}[data-kind=down]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){--_kpt-chart-delta: var(--kpt-chart-delta-down, var(--kpt-color-danger))}[data-kind=same]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){display:none}.kpt-chart__delta{stroke:var(--_kpt-chart-delta);stroke-width:2;stroke-linecap:round;animation:kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__delta-bar{fill:var(--_kpt-chart-delta);animation:kpt-chart-ghost-soft calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__chip{fill:var(--_kpt-chart-delta);font-size:10px;font-weight:var(--kpt-font-weight-bold, 700);font-family:var(--kpt-font-family-sans);font-variant-numeric:tabular-nums;pointer-events:none;animation:kpt-chart-chip calc(1.3s * var(--kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc((.38s + var(--kpt-chart-i, 0) * .04s) * var(--kpt-motion-scale, 1)) both}.kpt-chart__sheen-stop{stop-color:var(--kpt-chart-sheen, var(--kpt-color-info))}.kpt-chart__sheen-line{fill:none;stroke-width:5;stroke-linecap:round;filter:blur(1.2px);pointer-events:none}.kpt-chart__sheen-bar{mix-blend-mode:screen;pointer-events:none}[data-theme=dark] .kpt-chart__sheen-bar{mix-blend-mode:normal}.kpt-chart__ripple{fill:none;stroke-width:2;transform-box:fill-box;transform-origin:center;pointer-events:none;animation:kpt-chart-ripple calc(.52s * var(--kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc(.24s * var(--kpt-motion-scale, 1)) both}@keyframes kpt-chart-ghost{0%,50%{opacity:1}to{opacity:0}}@keyframes kpt-chart-ghost-soft{0%,50%{opacity:.45}to{opacity:0}}@keyframes kpt-chart-chip{0%{opacity:0;translate:0 6px}25%,75%{opacity:1;translate:0 0}to{opacity:0;translate:0 -6px}}@keyframes kpt-chart-ripple{0%{opacity:.55;scale:1}to{opacity:0;scale:3.2}}.kpt-chart--no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip{transition:none}}.kpt-chart--no-anim :is(.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip){transition:none}.kpt-chart__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"] }]
1511
+ }, template: "<div class=\"kpt-chart\" [attr.data-legend]=\"legendOpts().display ? legendOpts().position : null\">\n @if (titleOpts()?.display && titleOpts()?.text) {\n <div\n class=\"kpt-chart__title\"\n [style.text-align]=\"titleStyle()\"\n [style.color]=\"titleOpts()?.color\"\n [style.font-family]=\"titleOpts()?.font?.family\"\n [style.font-size.px]=\"titleOpts()?.font?.size\"\n [style.font-weight]=\"titleOpts()?.font?.weight\"\n [style.padding-top.px]=\"titleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"titleOpts()?.padding?.bottom\"\n >\n {{ titleOpts()?.text }}\n </div>\n }\n @if (subtitleOpts()?.display && subtitleOpts()?.text) {\n <div\n class=\"kpt-chart__subtitle\"\n [style.text-align]=\"subtitleStyle()\"\n [style.color]=\"subtitleOpts()?.color\"\n [style.font-family]=\"subtitleOpts()?.font?.family\"\n [style.font-size.px]=\"subtitleOpts()?.font?.size\"\n [style.font-weight]=\"subtitleOpts()?.font?.weight\"\n [style.padding-top.px]=\"subtitleOpts()?.padding?.top\"\n [style.padding-bottom.px]=\"subtitleOpts()?.padding?.bottom\"\n >\n {{ subtitleOpts()?.text }}\n </div>\n }\n\n <div class=\"kpt-chart__body\">\n <div class=\"kpt-chart__canvas\">\n <svg\n [attr.viewBox]=\"'0 0 ' + width() + ' ' + height()\"\n class=\"kpt-chart__svg\"\n role=\"img\"\n [attr.aria-label]=\"accessibleName()\"\n [attr.aria-describedby]=\"config().description ? descId : null\"\n preserveAspectRatio=\"xMidYMid meet\"\n >\n @if (sheen(); as sh) {\n <defs>\n <linearGradient [attr.id]=\"sheenId\" gradientUnits=\"userSpaceOnUse\" [attr.x1]=\"sh.x1\" [attr.x2]=\"sh.x2\" [attr.y1]=\"sh.y1\" [attr.y2]=\"sh.y2\">\n <stop offset=\"0\" class=\"kpt-chart__sheen-stop\" stop-opacity=\"0\" />\n <stop offset=\"0.5\" class=\"kpt-chart__sheen-stop\" stop-opacity=\"0.95\" />\n <stop offset=\"1\" class=\"kpt-chart__sheen-stop\" stop-opacity=\"0\" />\n </linearGradient>\n </defs>\n }\n @switch (type()) {\n @case ('line') {\n @if (lineVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n @if (crosshair(); as ch) {\n <line class=\"kpt-chart__crosshair\" [attr.x1]=\"ch.x\" [attr.y1]=\"ch.y1\" [attr.x2]=\"ch.x\" [attr.y2]=\"ch.y2\" />\n }\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n @if (l.visible) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n }\n </g>\n <!-- Kropka pod ka\u017Cd\u0105 kategori\u0105: mi\u0119dzy etykietami wida\u0107, gdzie s\u0105 punkty i kt\u00F3ry jest aktywny. -->\n <g class=\"kpt-chart__cat-ticks\" aria-hidden=\"true\">\n @for (t of vm.catTicks; track $index) {\n <circle class=\"kpt-chart__cat-tick\" r=\"2\" [class.kpt-chart__cat-tick--active]=\"activeIndex() === $index\" [attr.cx]=\"t.x\" [attr.cy]=\"t.y\" />\n }\n </g>\n @if (crosshair(); as ch) {\n <g class=\"kpt-chart__cat-active\">\n <rect [attr.x]=\"ch.pillX\" [attr.y]=\"ch.pillY\" [attr.width]=\"ch.pillW\" [attr.height]=\"ch.pillH\" [attr.rx]=\"ch.pillH / 2\" />\n <text [attr.x]=\"ch.labelX\" [attr.y]=\"ch.labelY\" text-anchor=\"middle\">{{ ch.text }}</text>\n </g>\n }\n <!-- Duch poprzedniego stanu i odcinki zmiany - tylko na czas przej\u015Bcia danych. -->\n @for (g of vm.ghost; track g.key) {\n <g class=\"kpt-chart__ghost\" aria-hidden=\"true\">\n <path class=\"kpt-chart__ghost-line\" [attr.d]=\"g.path\" />\n @for (t of g.ticks; track $index) {\n <line class=\"kpt-chart__delta\" [attr.data-kind]=\"t.kind\" [attr.x1]=\"t.x\" [attr.x2]=\"t.x\" [attr.y1]=\"t.y1\" [attr.y2]=\"t.y2\" />\n }\n </g>\n }\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n @if (s.area) {\n <path class=\"kpt-chart__area\" [attr.d]=\"s.area\" [style.fill]=\"s.color\" />\n }\n <path class=\"kpt-chart__line\" [attr.d]=\"s.path\" [style.stroke]=\"s.color\" pathLength=\"1\" />\n @for (p of s.points; track $index) {\n @if (vm.showPoints) {\n <circle\n class=\"kpt-chart__point\"\n [class.kpt-chart__point--active]=\"activeIndex() === $index\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n />\n }\n }\n </g>\n }\n @if (sheen(); as sh) {\n @for (s of vm.series; track s.key) {\n <path class=\"kpt-chart__sheen-line\" [attr.d]=\"s.path\" [attr.stroke]=\"'url(#' + sheenId + ')'\" [style.opacity]=\"sh.opacity\" aria-hidden=\"true\" />\n }\n }\n @for (g of vm.ghost; track g.key) {\n @for (c of g.chips; track c.index) {\n <text\n class=\"kpt-chart__chip\"\n [attr.data-kind]=\"c.kind\"\n [attr.x]=\"c.x\"\n [attr.y]=\"c.y\"\n text-anchor=\"middle\"\n [style.--kpt-chart-i]=\"c.index\"\n aria-hidden=\"true\"\n >{{ c.text }}</text>\n }\n }\n @for (r of ripple(); track r.id) {\n <circle class=\"kpt-chart__ripple\" [attr.cx]=\"r.x\" [attr.cy]=\"r.y\" r=\"5\" [style.stroke]=\"r.color\" aria-hidden=\"true\" />\n }\n <!-- Najechanie: najbli\u017Csza kategoria w ca\u0142ym obszarze wykresu - dymek jedzie mi\u0119dzy punktami bez ga\u015Bni\u0119cia. -->\n <rect\n class=\"kpt-chart__hover\"\n [attr.x]=\"vm.plot.x - 12\"\n [attr.y]=\"vm.plot.y - 12\"\n [attr.width]=\"vm.plot.width + 24\"\n [attr.height]=\"vm.plot.height + 24\"\n (pointermove)=\"onCategoryMove($event)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n }\n\n @case ('bar') {\n @if (barVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (g of vm.grid; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.valueLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n @for (l of vm.catLabels; track $index) {\n @if (l.visible) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n }\n </g>\n @if (vm.ghost.length) {\n <g class=\"kpt-chart__ghost\" aria-hidden=\"true\">\n @for (g of vm.ghost; track g.key) {\n <path class=\"kpt-chart__ghost-bar\" [attr.d]=\"g.path\" />\n }\n </g>\n }\n <g class=\"kpt-chart__bars\" [attr.data-orientation]=\"vm.orientation\">\n @for (b of vm.bars; track b.key + '#' + b.index) {\n <path\n class=\"kpt-chart__bar\"\n [class.kpt-chart__series--dim]=\"dim(b.key)\"\n [attr.d]=\"b.path\"\n [style.fill]=\"b.color\"\n [style.--kpt-chart-i]=\"b.index\"\n />\n }\n </g>\n @if (vm.ghost.length) {\n <g class=\"kpt-chart__ghost\" aria-hidden=\"true\">\n @for (g of vm.ghost; track g.key) {\n <rect\n class=\"kpt-chart__delta-bar\"\n [attr.data-kind]=\"g.delta.kind\"\n [attr.x]=\"g.delta.x\"\n [attr.y]=\"g.delta.y\"\n [attr.width]=\"g.delta.width\"\n [attr.height]=\"g.delta.height\"\n rx=\"2\"\n />\n }\n </g>\n }\n @if (sheen(); as sh) {\n @for (b of vm.bars; track b.key + '#' + b.index) {\n <path class=\"kpt-chart__sheen-bar\" [attr.d]=\"b.path\" [attr.fill]=\"'url(#' + sheenId + ')'\" [style.opacity]=\"sh.opacity * 0.7\" aria-hidden=\"true\" />\n }\n }\n <rect\n class=\"kpt-chart__hover\"\n [attr.x]=\"vm.plot.x\"\n [attr.y]=\"vm.plot.y\"\n [attr.width]=\"vm.plot.width\"\n [attr.height]=\"vm.plot.height\"\n (pointermove)=\"onCategoryMove($event)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n }\n\n @case ('radar') {\n @if (radarVm(); as vm) {\n <g class=\"kpt-chart__grid\">\n @for (r of vm.rings; track $index) {\n <path class=\"kpt-chart__ring\" [attr.d]=\"r\" />\n }\n @for (a of vm.axisLines; track $index) {\n <line class=\"kpt-chart__gridline\" [attr.x1]=\"a.x1\" [attr.y1]=\"a.y1\" [attr.x2]=\"a.x2\" [attr.y2]=\"a.y2\" />\n }\n </g>\n <g class=\"kpt-chart__axis\">\n @for (l of vm.axisLabels; track $index) {\n <text [attr.x]=\"l.x\" [attr.y]=\"l.y\" [attr.text-anchor]=\"l.anchor\">{{ l.text }}</text>\n }\n </g>\n @for (s of vm.series; track s.key) {\n <g class=\"kpt-chart__series kpt-chart__radar\" [class.kpt-chart__series--dim]=\"dim(s.key)\">\n <path class=\"kpt-chart__radar-area\" [attr.d]=\"s.polygon\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" />\n @for (p of s.points; track $index) {\n <circle\n class=\"kpt-chart__point\"\n [attr.cx]=\"p.x\"\n [attr.cy]=\"p.y\"\n r=\"4\"\n [style.fill]=\"s.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(p.x, p.y, s.name, p.label, p.value, s.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n\n @default {\n @if (pieVm(); as slices) {\n <g class=\"kpt-chart__slices\">\n @for (sl of slices; track sl.key) {\n <path\n class=\"kpt-chart__slice\"\n [class.kpt-chart__series--dim]=\"dim(sl.key)\"\n [attr.d]=\"sl.path\"\n [style.fill]=\"sl.color\"\n [style.--kpt-chart-i]=\"$index\"\n (pointerenter)=\"showTip(sl.tipX, sl.tipY, sl.label, '', sl.value, sl.color)\"\n (pointerleave)=\"hideTip()\"\n />\n }\n </g>\n }\n }\n }\n </svg>\n @if (config().description) {\n <p class=\"kpt-chart__sr\" [id]=\"descId\">{{ config().description }}</p>\n }\n <!-- Dane wykresu dla czytnika: tabela ukryta wizualnie, nie przez display:none. -->\n <table class=\"kpt-chart__sr\">\n <caption>{{ i18n.t('chart.dataTable') }}: {{ accessibleName() }}</caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ i18n.t('chart.category') }}</th>\n @for (col of dataTable().columns; track $index) {\n <th scope=\"col\">{{ col }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of dataTable().rows; track $index) {\n <tr>\n <th scope=\"row\">{{ row.label }}</th>\n @for (value of row.values; track $index) {\n <td>{{ value }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <kpt-chart-tooltip [state]=\"tooltip()\" />\n </div>\n\n @if (legendOpts().display) {\n <kpt-chart-legend\n [items]=\"legendItems()\"\n [position]=\"legendOpts().position\"\n [align]=\"legendOpts().align\"\n [pointStyle]=\"legendOpts().pointStyle\"\n [title]=\"legendOpts().title\"\n (seriesToggle)=\"onToggle($event)\"\n (highlight)=\"onHighlight($event)\"\n />\n }\n </div>\n</div>\n", styles: ["@layer kpt.components{.kpt-chart-host{display:block;--kpt-chart-duration: .4s;--kpt-chart-stagger: 60ms;--kpt-chart-delay: 0ms;--kpt-chart-ease: cubic-bezier(.25, 1, .5, 1);--kpt-chart-spring: linear(0, .0521, .1747, .3278, .4847, .6288, .7513, .849, .9224, .9741, 1.0077, 1.0272, 1.0364, 1.0384, 1.0359, 1.031, 1.025, 1.019, 1.0136, 1.009, 1.0054, 1.0027, 1.0008, .9996, .9989, .9986, .9985, .9986, .9988, .9991, .9993, .9995, .9997, .9998, .9999, 1, 1, 1, 1.0001, 1.0001, 1)}.kpt-chart{display:flex;flex-direction:column;gap:var(--kpt-space-2, .5rem);color:var(--kpt-color-on-surface)}.kpt-chart__title{font-size:var(--kpt-font-size-lg, 1.125rem);font-weight:var(--kpt-font-weight-semibold, 600);color:var(--kpt-color-on-surface)}.kpt-chart__subtitle{font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface-muted, #6b7280)}.kpt-chart__body{display:flex;gap:var(--kpt-space-3, .75rem);align-items:center;min-width:0}.kpt-chart[data-legend=top] .kpt-chart__body,.kpt-chart[data-legend=bottom] .kpt-chart__body{flex-direction:column}.kpt-chart[data-legend=top] .kpt-chart-legend-host,.kpt-chart[data-legend=left] .kpt-chart-legend-host{order:-1}.kpt-chart__canvas{position:relative;flex:1 1 auto;min-width:0;width:100%}.kpt-chart__svg{display:block;width:100%;height:auto}.kpt-chart__gridline{stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__ring{fill:none;stroke:var(--kpt-color-border);stroke-width:1;opacity:.7}.kpt-chart__axis text{fill:var(--kpt-color-on-surface-muted, #6b7280);font-size:11px;font-family:var(--kpt-font-family-sans)}.kpt-chart__crosshair{stroke:var(--kpt-color-border-strong);stroke-width:1;stroke-dasharray:4 4;opacity:.75;pointer-events:none}.kpt-chart__cat-tick{r:2px;fill:var(--kpt-color-border-strong);pointer-events:none;transition:r calc(.15s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease),fill calc(.15s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease)}.kpt-chart__cat-tick--active{r:3.5px;fill:var(--kpt-color-on-surface)}.kpt-chart__cat-active{pointer-events:none}.kpt-chart__cat-active rect{fill:var(--kpt-color-on-surface)}.kpt-chart__cat-active text{fill:var(--kpt-color-surface);font-size:11px;font-weight:var(--kpt-font-weight-medium, 500);font-family:var(--kpt-font-family-sans)}.kpt-chart__series,.kpt-chart__bar,.kpt-chart__slice{transition:opacity .2s var(--kpt-chart-ease)}.kpt-chart__series--dim{opacity:.22}.kpt-chart__line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.kpt-chart__area{stroke:none;opacity:.15}.kpt-chart__point{stroke:var(--kpt-color-surface);stroke-width:2;cursor:pointer;transition:transform .15s var(--kpt-chart-ease);transform-box:fill-box;transform-origin:center}.kpt-chart__point:hover{transform:scale(1.4)}.kpt-chart__point--active{transform:scale(1.5)}.kpt-chart__hover{fill:transparent;pointer-events:all}.kpt-chart__bar{cursor:pointer}.kpt-chart__slice{cursor:pointer;stroke:var(--kpt-color-surface);stroke-width:1.5}.kpt-chart__radar-area{fill-opacity:.18;stroke-width:2;stroke-linejoin:round}.kpt-chart__legend-title{font-size:var(--kpt-font-size-sm, .875rem);font-weight:var(--kpt-font-weight-medium, 500);color:var(--kpt-color-on-surface-muted);margin-bottom:var(--kpt-space-1, .25rem)}.kpt-chart__legend-list{display:flex;flex-wrap:wrap;gap:var(--kpt-space-2, .5rem) var(--kpt-space-4, 1rem);align-items:center;justify-content:center;margin:0;padding:0;list-style:none}.kpt-chart__legend[data-align=start] .kpt-chart__legend-list{justify-content:flex-start}.kpt-chart__legend[data-align=end] .kpt-chart__legend-list{justify-content:flex-end}.kpt-chart__legend[data-position=left] .kpt-chart__legend-list,.kpt-chart__legend[data-position=right] .kpt-chart__legend-list{flex-direction:column;align-items:flex-start}.kpt-chart__legend-item{display:inline-flex;align-items:center;gap:var(--kpt-space-2, .5rem);padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--kpt-font-size-sm, .875rem);color:var(--kpt-color-on-surface)}.kpt-chart__legend-item--hidden{opacity:.45}.kpt-chart__legend-item--hidden .kpt-chart__legend-label{text-decoration:line-through}.kpt-chart__legend-marker{display:inline-block;width:12px;height:12px;background:var(--kpt-chart-legend-color);flex:none}.kpt-chart__legend-marker[data-style=circle]{border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__legend-marker[data-style=rect]{border-radius:var(--kpt-radius-sm, .25rem)}.kpt-chart__legend-marker[data-style=rectRot]{transform:rotate(45deg);border-radius:2px}.kpt-chart__legend-marker[data-style=triangle]{background:none;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--kpt-chart-legend-color)}.kpt-chart__legend-marker[data-style=line]{height:3px;border-radius:var(--kpt-radius-full, 9999px)}.kpt-chart__tooltip{position:absolute;transform:translate(-50%,calc(-100% - 10px));pointer-events:none;background:var(--kpt-color-surface-raised, var(--kpt-color-surface));color:var(--kpt-color-on-surface);border:1px solid var(--kpt-color-border);border-radius:var(--kpt-radius-md, .5rem);box-shadow:0 4px 16px #0000001f;padding:var(--kpt-space-2, .5rem) var(--kpt-space-3, .75rem);font-size:var(--kpt-font-size-sm, .875rem);white-space:nowrap;z-index:2}.kpt-chart__tooltip--flip{transform:translate(-50%,12px)}.kpt-chart__tooltip{transform-origin:50% 100%;transition:opacity calc(.16s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease),scale calc(.16s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease),visibility 0s}.kpt-chart__tooltip--hidden{opacity:0;scale:.96;visibility:hidden;transition:opacity calc(.14s * var(--kpt-motion-scale, 1)) ease-in,scale calc(.14s * var(--kpt-motion-scale, 1)) ease-in,visibility 0s calc(.14s * var(--kpt-motion-scale, 1))}.kpt-chart__tooltip-label{display:inline-block}.kpt-chart__reels{display:inline-flex;font-variant-numeric:tabular-nums}.kpt-chart__reel{display:inline-block;height:1.25em;line-height:1.25em;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,var(--kpt-color-on-surface) 12%,var(--kpt-color-on-surface) 88%,transparent);mask-image:linear-gradient(transparent,var(--kpt-color-on-surface) 12%,var(--kpt-color-on-surface) 88%,transparent)}.kpt-chart__reel-strip{display:flex;flex-direction:column;translate:0 calc(var(--kpt-chart-digit, 0) * -1.25em);transition:translate calc(.52s * var(--kpt-motion-scale, 1)) var(--kpt-chart-spring)}.kpt-chart__reel-strip>span,.kpt-chart__reel-text{height:1.25em;line-height:1.25em;white-space:pre}.kpt-chart__tooltip-title{font-weight:var(--kpt-font-weight-semibold, 600);margin-bottom:2px}.kpt-chart__tooltip-row{display:flex;align-items:center;gap:var(--kpt-space-2, .5rem)}.kpt-chart__tooltip-dot{width:8px;height:8px;border-radius:var(--kpt-radius-full, 9999px);flex:none}.kpt-chart__tooltip-name{color:var(--kpt-color-on-surface-muted)}.kpt-chart__tooltip-val{margin-left:auto;font-weight:var(--kpt-font-weight-medium, 500)}.kpt-chart__line{stroke-dasharray:1;stroke-dashoffset:1;animation:kpt-chart-draw var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) forwards}.kpt-chart__area{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}.kpt-chart__point{animation:kpt-chart-fade var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-duration) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=vertical] .kpt-chart__bar{transform-box:fill-box;transform-origin:bottom;animation:kpt-chart-grow-y var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__bars[data-orientation=horizontal] .kpt-chart__bar{transform-box:fill-box;transform-origin:left;animation:kpt-chart-grow-x var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__slice,.kpt-chart__radar-area{transform-box:fill-box;transform-origin:center}.kpt-chart__slice{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) calc(var(--kpt-chart-delay) + var(--kpt-chart-i, 0) * var(--kpt-chart-stagger)) backwards}.kpt-chart__radar-area{animation:kpt-chart-pop var(--kpt-chart-duration) var(--kpt-chart-ease) var(--kpt-chart-delay) backwards}@keyframes kpt-chart-draw{to{stroke-dashoffset:0}}@keyframes kpt-chart-fade{0%{opacity:0}}@keyframes kpt-chart-grow-y{0%{transform:scaleY(0)}}@keyframes kpt-chart-grow-x{0%{transform:scaleX(0)}}@keyframes kpt-chart-pop{0%{transform:scale(0);opacity:0}}.kpt-chart__ghost{pointer-events:none}.kpt-chart__ghost-line,.kpt-chart__ghost-bar{fill:none;stroke:var(--kpt-color-on-surface-muted);stroke-dasharray:4 4;animation:kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__ghost-line{stroke-width:1.5}.kpt-chart__ghost-bar{stroke-width:1;stroke-dasharray:3 3}.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip{--_kpt-chart-delta: var(--kpt-chart-delta-up, var(--kpt-color-success))}[data-kind=down]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){--_kpt-chart-delta: var(--kpt-chart-delta-down, var(--kpt-color-danger))}[data-kind=same]:is(.kpt-chart__delta,.kpt-chart__delta-bar,.kpt-chart__chip){display:none}.kpt-chart__delta{stroke:var(--_kpt-chart-delta);stroke-width:2;stroke-linecap:round;animation:kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__delta-bar{fill:var(--_kpt-chart-delta);animation:kpt-chart-ghost-soft calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards}.kpt-chart__chip{fill:var(--_kpt-chart-delta);font-size:10px;font-weight:var(--kpt-font-weight-bold, 700);font-family:var(--kpt-font-family-sans);font-variant-numeric:tabular-nums;pointer-events:none;animation:kpt-chart-chip calc(1.3s * var(--kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc((.38s + var(--kpt-chart-i, 0) * .04s) * var(--kpt-motion-scale, 1)) both}.kpt-chart__sheen-stop{stop-color:var(--kpt-chart-sheen, var(--kpt-color-info))}.kpt-chart__sheen-line{fill:none;stroke-width:5;stroke-linecap:round;filter:blur(1.2px);pointer-events:none}.kpt-chart__sheen-bar{mix-blend-mode:screen;pointer-events:none}[data-theme=dark] .kpt-chart__sheen-bar{mix-blend-mode:normal}.kpt-chart__ripple{fill:none;stroke-width:2;transform-box:fill-box;transform-origin:center;pointer-events:none;animation:kpt-chart-ripple calc(.52s * var(--kpt-motion-scale, 1)) cubic-bezier(.2,0,0,1) calc(.24s * var(--kpt-motion-scale, 1)) both}@keyframes kpt-chart-ghost{0%,50%{opacity:1}to{opacity:0}}@keyframes kpt-chart-ghost-soft{0%,50%{opacity:.45}to{opacity:0}}@keyframes kpt-chart-chip{0%{opacity:0;translate:0 6px}25%,75%{opacity:1;translate:0 0}to{opacity:0;translate:0 -6px}}@keyframes kpt-chart-ripple{0%{opacity:.55;scale:1}to{opacity:0;scale:3.2}}.kpt-chart--no-anim :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}@media(prefers-reduced-motion:reduce){.kpt-chart :is(.kpt-chart__line,.kpt-chart__area,.kpt-chart__point,.kpt-chart__bar,.kpt-chart__slice,.kpt-chart__radar-area){animation:none;stroke-dashoffset:0}.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip{transition:none}}.kpt-chart--no-anim :is(.kpt-chart__tooltip,.kpt-chart__tooltip--hidden,.kpt-chart__reel-strip){transition:none}.kpt-chart__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"] }]
1450
1512
  }], () => [], { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }] }); })();
1451
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptChart, { className: "KptChart", filePath: "lib/chart.component.ts", lineNumber: 179 }); })();
1513
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(KptChart, { className: "KptChart", filePath: "lib/chart.component.ts", lineNumber: 220 }); })();
1452
1514
  /** Indeks najbliższej pozycji (środka kategorii) do współrzędnej kursora. */
1453
1515
  function nearestIndex(positions, at) {
1454
1516
  let best = 0;