@konce-pt/chart 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://ui.konce.pt/images/koncept_ui_lib.png" alt="Koncept UI
|
|
2
|
+
<img src="https://ui.konce.pt/images/koncept_ui_lib.png" alt="Koncept UI" width="100%" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
# @konce-pt/chart
|
|
@@ -9,7 +9,7 @@ Rdzeń geometrii wykresów [Koncept UI](https://gitlab.com/konce-pt/koncept-ui):
|
|
|
9
9
|
TypeScript, **zero zależności runtime**, bez wiązania z frameworkiem.
|
|
10
10
|
|
|
11
11
|
Zwykle nie instalujesz go samodzielnie: używają go `@konce-pt/angular/charts`
|
|
12
|
-
i `@konce-pt/react/charts`, i oba re-eksportują jego
|
|
12
|
+
i `@konce-pt/react/charts`, i oba re-eksportują jego typy i część geometrii. Sięgnij po niego wprost, gdy renderujesz
|
|
13
13
|
wykres po stronie serwera albo budujesz własny typ wykresu na tej samej geometrii.
|
|
14
14
|
|
|
15
15
|
```bash
|
|
@@ -20,7 +20,7 @@ npm i @konce-pt/chart
|
|
|
20
20
|
import { niceScale, linePath, pieSlices } from '@konce-pt/chart';
|
|
21
21
|
|
|
22
22
|
// Oś zawsze zawiera zero i ma równe, "ładne" kroki.
|
|
23
|
-
niceScale(12, 87); // { min: 0, max: 100, step:
|
|
23
|
+
niceScale(12, 87); // { min: 0, max: 100, step: 20, ticks: [0, 20, 40, 60, 80, 100] }
|
|
24
24
|
|
|
25
25
|
// Trzy tryby interpolacji; monotoniczny nie przestrzeliwuje ekstremów danych.
|
|
26
26
|
linePath([{ x: 0, y: 10 }, { x: 10, y: 0 }], 'cubic-monotonic');
|
|
@@ -38,6 +38,10 @@ pieSlices([0, 0], 50, 50, 40); // []
|
|
|
38
38
|
- **Radar** - `radarGrid`, `radarPoints`, `polygonPath`
|
|
39
39
|
- **Układ i prezentacja** - `plotArea`, `radialArea`, `seriesColor`, `KPT_CHART_PALETTE`,
|
|
40
40
|
`formatNumber`, `round`
|
|
41
|
+
- **Dostępność** - `chartAccessibleName`, `chartDataTable`, typ `KptChartDataTable`
|
|
42
|
+
- **Ruch** - `KptChartMotion`, `dataScale`, `holdDomain`, `domainScale`, `springStep`, `waveDelay`,
|
|
43
|
+
`sheenFront`, `easeEmphasized`, `deltaKind`, `significantDelta`, `sameChartShape`, `reelCells`,
|
|
44
|
+
`KPT_CHART_MOTION`
|
|
41
45
|
- **Typy** - `KptChartConfig` i wszystko, do czego się odwołuje
|
|
42
46
|
|
|
43
47
|
Pełny opis: [`llms.txt`](https://ui.konce.pt/llms/chart/llms.txt) (EN)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konce-pt/chart",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Chart geometry core for Koncept UI - scales, line and area paths, bar layout, pie and radar geometry. Framework-free TypeScript, zero runtime dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "konce.pt",
|