@keneth80/k-chart 1.25.0 → 1.26.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.
- package/CHANGELOG.md +52 -0
- package/README.md +36 -4
- package/docs/ai/agent-usage.md +8 -3
- package/docs/configuration-reference.md +13 -6
- package/docs/functional-api.md +26 -1
- package/examples/stackblitz-calendar-heatmap-basic/index.html +37 -0
- package/examples/stackblitz-calendar-heatmap-basic/package-lock.json +1548 -0
- package/examples/stackblitz-calendar-heatmap-basic/package.json +18 -0
- package/examples/stackblitz-calendar-heatmap-basic/src/main.ts +172 -0
- package/examples/stackblitz-calendar-heatmap-basic/src/style.css +33 -0
- package/examples/stackblitz-calendar-heatmap-basic/src/vite-env.d.ts +1 -0
- package/examples/stackblitz-doughnut-scroll-legend/index.html +2 -2
- package/examples/stackblitz-doughnut-scroll-legend/package.json +1 -1
- package/examples/stackblitz-dual-axis-combo-basic/index.html +27 -0
- package/examples/stackblitz-dual-axis-combo-basic/package-lock.json +1548 -0
- package/examples/stackblitz-dual-axis-combo-basic/package.json +18 -0
- package/examples/stackblitz-dual-axis-combo-basic/src/main.ts +88 -0
- package/examples/stackblitz-dual-axis-combo-basic/src/style.css +31 -0
- package/examples/stackblitz-dual-axis-combo-basic/src/vite-env.d.ts +1 -0
- package/examples/stackblitz-hybrid-operations-dashboard/index.html +53 -0
- package/examples/stackblitz-hybrid-operations-dashboard/package-lock.json +1548 -0
- package/examples/stackblitz-hybrid-operations-dashboard/package.json +18 -0
- package/examples/stackblitz-hybrid-operations-dashboard/src/main.ts +181 -0
- package/examples/stackblitz-hybrid-operations-dashboard/src/style.css +52 -0
- package/examples/stackblitz-pareto-basic/index.html +22 -0
- package/examples/stackblitz-pareto-basic/package-lock.json +1548 -0
- package/examples/stackblitz-pareto-basic/package.json +18 -0
- package/examples/stackblitz-pareto-basic/src/main.ts +101 -0
- package/examples/stackblitz-pareto-basic/src/style.css +31 -0
- package/examples/stackblitz-pareto-basic/src/vite-env.d.ts +1 -0
- package/examples/stackblitz-us-transport-route/index.html +29 -0
- package/examples/stackblitz-us-transport-route/package.json +17 -0
- package/examples/stackblitz-us-transport-route/src/main.ts +211 -0
- package/examples/stackblitz-us-transport-route/src/style.css +178 -0
- package/examples/stackblitz-world-activity-map/package.json +1 -1
- package/examples/stackblitz-world-cluster-map/index.html +19 -0
- package/examples/stackblitz-world-cluster-map/package.json +19 -0
- package/examples/stackblitz-world-cluster-map/src/main.ts +78 -0
- package/examples/stackblitz-world-cluster-map/src/style.css +65 -0
- package/lib/core/contracts.d.ts +4 -0
- package/lib/core/contracts.d.ts.map +1 -1
- package/lib/internal/downsample.d.ts.map +1 -1
- package/lib/internal/downsample.js +248 -2
- package/lib/internal/downsample.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.26.1 - 2026-09-07
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added Dual-axis Combo and Pareto examples that combine SVG columns and
|
|
8
|
+
lines with independent left and right value axes.
|
|
9
|
+
- Added a Calendar Heatmap example with 181 accessible daily cells, five
|
|
10
|
+
intensity levels, and date/value tooltips.
|
|
11
|
+
- Added standalone StackBlitz-ready projects and README links for all three
|
|
12
|
+
analysis examples.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Added an Analysis section to the main playground so the new examples are
|
|
17
|
+
available directly from the sidebar and example gallery.
|
|
18
|
+
|
|
19
|
+
### Tests
|
|
20
|
+
|
|
21
|
+
- Verified the root typecheck, production build, unit suite, standalone Vite
|
|
22
|
+
builds, and desktop/mobile rendering for each new example.
|
|
23
|
+
|
|
24
|
+
## 1.26.0 - 2026-08-27
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Added pixel-column min/max downsampling for dense numeric and time-series
|
|
29
|
+
lines, preserving each visible column's first, minimum, maximum, and last
|
|
30
|
+
points in source order.
|
|
31
|
+
- Added `downsample.strategy` (`lttb`, `min-max`, or `auto`) and
|
|
32
|
+
`pointsPerPixel` configuration while preserving LTTB as the existing default.
|
|
33
|
+
- Added configurable MapLibre world clustering, single-world rendering,
|
|
34
|
+
bounds, cluster styling, cluster interaction callbacks, and toolbar controls
|
|
35
|
+
in `@keneth80/k-chart-maplibre` 0.2.0.
|
|
36
|
+
- Added a StackBlitz-ready clustered world map example and playground entry.
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- Dense Canvas and WebGL line demos now use the safe `auto` strategy so
|
|
41
|
+
continuous, ordered data can retain narrow spikes with output proportional
|
|
42
|
+
to plot width.
|
|
43
|
+
- Unsafe or unsupported automatic min/max inputs fall back to LTTB; explicit
|
|
44
|
+
`min-max` keeps the original renderer input instead of silently changing
|
|
45
|
+
algorithms.
|
|
46
|
+
|
|
47
|
+
### Tests
|
|
48
|
+
|
|
49
|
+
- Added regression coverage for numeric, Date, and ISO-time min/max sampling,
|
|
50
|
+
viewport boundaries, extrema order, invalid data, zoomed domains, automatic
|
|
51
|
+
fallback behavior, and output-size bounds.
|
|
52
|
+
- Added MapLibre configuration and runtime tests for clustering, world-copy
|
|
53
|
+
control, callbacks, styling expressions, bounds, and toolbar behavior.
|
|
54
|
+
|
|
3
55
|
## 1.25.0 - 2026-08-27
|
|
4
56
|
|
|
5
57
|
### Added
|
package/README.md
CHANGED
|
@@ -68,10 +68,18 @@
|
|
|
68
68
|
·
|
|
69
69
|
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-world-activity-map?title=KChart%20World%20Activity%20Map&file=src/main.ts"><strong>World Activity Map</strong></a>
|
|
70
70
|
·
|
|
71
|
+
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-world-cluster-map?title=KChart%20World%20Cluster%20Map&file=src/main.ts"><strong>World Cluster Map</strong></a>
|
|
72
|
+
·
|
|
71
73
|
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-column-basic?title=KChart%20Column&file=src/main.ts"><strong>Column</strong></a>
|
|
72
74
|
·
|
|
73
75
|
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-stacked-column-basic?title=KChart%20Stacked%20Column&file=src/main.ts"><strong>Stacked Column</strong></a>
|
|
74
76
|
·
|
|
77
|
+
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-dual-axis-combo-basic?title=KChart%20Dual-axis%20Combo&file=src/main.ts"><strong>Dual-axis Combo</strong></a>
|
|
78
|
+
·
|
|
79
|
+
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-pareto-basic?title=KChart%20Pareto&file=src/main.ts"><strong>Pareto</strong></a>
|
|
80
|
+
·
|
|
81
|
+
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-calendar-heatmap-basic?title=KChart%20Calendar%20Heatmap&file=src/main.ts"><strong>Calendar Heatmap</strong></a>
|
|
82
|
+
·
|
|
75
83
|
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-candlestick-basic?title=KChart%20Candlestick&file=src/main.ts"><strong>Candlestick</strong></a>
|
|
76
84
|
·
|
|
77
85
|
<a href="https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-plot-basic?title=KChart%20Plot&file=src/main.ts"><strong>Plot</strong></a>
|
|
@@ -247,9 +255,8 @@ npm install @keneth80/k-chart
|
|
|
247
255
|
## Playground
|
|
248
256
|
|
|
249
257
|
- Live playground: [https://k-chart-playground.vercel.app/](https://k-chart-playground.vercel.app/)
|
|
250
|
-
- Local playground URL: `http://127.0.0.1:9011`
|
|
251
258
|
|
|
252
|
-
The playground demonstrates the React wrapper, chart examples, configuration editor
|
|
259
|
+
The deployed playground demonstrates the React wrapper, chart examples, and configuration editor.
|
|
253
260
|
|
|
254
261
|
## Local Development
|
|
255
262
|
|
|
@@ -762,9 +769,9 @@ createKChart({
|
|
|
762
769
|
- `gestureZoom`: 모바일 touch gesture 입력을 제어합니다. `devices`는 기본값이 `'mobile'`이며, `minTouches: 1`이면 한 손가락 pan과 두 손가락 pinch를 함께 허용합니다.
|
|
763
770
|
- `resetOnDoubleClick`: `false`로 지정하면 더블클릭 reset을 끌 수 있습니다.
|
|
764
771
|
|
|
765
|
-
##
|
|
772
|
+
## Line Downsampling
|
|
766
773
|
|
|
767
|
-
Line 계열 series는 `downsample` 옵션으로 LTTB
|
|
774
|
+
Line 계열 series는 `downsample` 옵션으로 LTTB 또는 픽셀 열별 min/max 축약을 사용할 수 있습니다. 원본 `data`와 축 domain은 그대로 유지하고, SVG/Canvas/WebGL renderer에 넘기는 series 데이터만 그리기 직전에 줄입니다.
|
|
768
775
|
|
|
769
776
|
```ts
|
|
770
777
|
createCanvasLineSeries<Point>({
|
|
@@ -791,6 +798,31 @@ createWebglLineSeries<Point>({
|
|
|
791
798
|
});
|
|
792
799
|
```
|
|
793
800
|
|
|
801
|
+
고밀도 numeric/time 시계열에서는 `min-max`가 각 픽셀 열의
|
|
802
|
+
first/min/max/last를 원본 순서대로 보존해 짧은 피크를 놓치지 않으면서 출력
|
|
803
|
+
point 수를 화면 폭에 비례하도록 제한합니다. 적용 가능 여부를 KChart에 맡기려면
|
|
804
|
+
`auto`를 사용합니다.
|
|
805
|
+
|
|
806
|
+
```ts
|
|
807
|
+
createWebglLineSeries<Point>({
|
|
808
|
+
selector: 'webgl-dense-signal',
|
|
809
|
+
xField: 'time',
|
|
810
|
+
yField: 'signal',
|
|
811
|
+
downsample: {
|
|
812
|
+
strategy: 'auto',
|
|
813
|
+
pointsPerPixel: 4
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
```
|
|
817
|
+
|
|
818
|
+
`auto`는 오름차순 number/time x축에서는 min-max를 선택하고, 범주형 축,
|
|
819
|
+
비정렬 입력, 결측값, 커스텀 accessor에서는 LTTB로 fallback합니다. 기존
|
|
820
|
+
`downsample: true`와 `strategy: 'lttb'`의 동작은 변경되지 않습니다.
|
|
821
|
+
명시적인 `strategy: 'min-max'`가 안전하지 않은 입력을 만나면 다른 알고리즘으로
|
|
822
|
+
바꾸지 않고 원본 renderer 입력을 유지합니다.
|
|
823
|
+
`pointsPerPixel`은 축약을 시작할 입력 밀도이며 결과는 픽셀 열당 최대 4개의
|
|
824
|
+
대표점과 선 연결을 위한 좌우 경계 이웃 최대 1개씩으로 제한됩니다.
|
|
825
|
+
|
|
794
826
|
필요하면 알고리즘만 직접 사용할 수도 있습니다.
|
|
795
827
|
|
|
796
828
|
```ts
|
package/docs/ai/agent-usage.md
CHANGED
|
@@ -53,11 +53,16 @@ When implementing charts:
|
|
|
53
53
|
|
|
54
54
|
Codex reads `AGENTS.md`. Put project-wide instructions at the repository root and narrower instructions in subdirectories when a dashboard package needs different rules.
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
KChart does not commit a repository-specific `AGENTS.md`; maintainers may create
|
|
57
|
+
one locally when needed. In a consuming project, include the shared instruction
|
|
58
|
+
above and add exact build and test commands appropriate to that project.
|
|
57
59
|
|
|
58
60
|
## Claude Code
|
|
59
61
|
|
|
60
|
-
Claude Code reads `CLAUDE.md`.
|
|
62
|
+
Claude Code reads `CLAUDE.md`. KChart does not commit this tool-specific file;
|
|
63
|
+
maintainers or consuming projects may create one locally. Keep it short and
|
|
64
|
+
reference the same canonical documents instead of copying the catalog into the
|
|
65
|
+
file.
|
|
61
66
|
|
|
62
67
|
For local exceptions that must not be committed, use the tool's supported local instruction mechanism rather than placing tokens, provider keys, or private data in `CLAUDE.md`.
|
|
63
68
|
|
|
@@ -65,7 +70,7 @@ For local exceptions that must not be committed, use the tool's supported local
|
|
|
65
70
|
|
|
66
71
|
Use `.cursor/rules/*.mdc`; `.cursorrules` is legacy. A KChart rule should be focused, auto-attached to chart files where possible, and reference this guide plus `ai/catalog.json`.
|
|
67
72
|
|
|
68
|
-
|
|
73
|
+
Consumer projects can add their own Cursor rule when they use Cursor. KChart does not ship editor-specific project configuration in the library repository.
|
|
69
74
|
|
|
70
75
|
## Verification checklist
|
|
71
76
|
|
|
@@ -254,7 +254,7 @@ createKChart({
|
|
|
254
254
|
| `pointerEvents` | `'core' \| 'series'` | 기본값은 `core`입니다. 노드/링크가 직접 hover·click을 처리하는 custom series는 `series`를 지정하면 코어 tooltip이 상위 group에서 이벤트를 함께 수신합니다. |
|
|
255
255
|
| `xField` / `yField` | `keyof T & string` | 기본 tooltip, scale 선택, downsample에 쓰이는 field입니다. |
|
|
256
256
|
| `color` | `string` | series 색상입니다. 없으면 chart `colors` 팔레트에서 할당됩니다. |
|
|
257
|
-
| `downsample` | `boolean \| KChartDownsampleConfiguration<T>` | line 계열 renderer에서 LTTB downsampling을 적용합니다. |
|
|
257
|
+
| `downsample` | `boolean \| KChartDownsampleConfiguration<T>` | line 계열 renderer에서 LTTB 또는 픽셀 열별 min/max downsampling을 적용합니다. |
|
|
258
258
|
| `render(context)` | `function` | 실제 렌더링 함수입니다. custom series의 핵심 확장 지점입니다. |
|
|
259
259
|
| `tooltip(context)` | `function` | custom tooltip hit-test를 구현할 수 있습니다. |
|
|
260
260
|
| `clearTooltip(context)` | `function` | hover 종료 시 series highlight를 되돌릴 수 있습니다. |
|
|
@@ -273,7 +273,7 @@ createKChart({
|
|
|
273
273
|
| `strokeWidth` | `number` | `2` | SVG path stroke width입니다. |
|
|
274
274
|
| `curve` | `boolean` | `false` | `true`이면 `curveMonotoneX`를 사용합니다. |
|
|
275
275
|
| `dot` | `boolean \| { radius; fill; stroke }` | `false` | 각 point에 SVG circle을 표시합니다. |
|
|
276
|
-
| `downsample` | `boolean \| object` | disabled | LTTB
|
|
276
|
+
| `downsample` | `boolean \| object` | disabled | LTTB 또는 픽셀 열별 min/max 축약을 적용합니다. |
|
|
277
277
|
|
|
278
278
|
### SVG Area: `createAreaSeries`
|
|
279
279
|
|
|
@@ -285,7 +285,7 @@ createKChart({
|
|
|
285
285
|
| `fill` / `fillOpacity` | `string`, `number` | chart color, `0.26` | area fill 스타일입니다. |
|
|
286
286
|
| `stroke` / `strokeWidth` | `string`, `number` | chart color, `2` | area 상단 라인 스타일입니다. |
|
|
287
287
|
| `curve` | `boolean` | `false` | `true`이면 `curveMonotoneX`를 사용합니다. |
|
|
288
|
-
| `downsample` | `boolean \| object` | disabled | LTTB
|
|
288
|
+
| `downsample` | `boolean \| object` | disabled | LTTB 또는 픽셀 열별 min/max 축약을 적용합니다. |
|
|
289
289
|
|
|
290
290
|
### SVG Horizontal Bar: `createBarSeries`
|
|
291
291
|
|
|
@@ -560,7 +560,7 @@ createTreemapSeries<ProductShare>({
|
|
|
560
560
|
| `color` | `string` | chart color | stroke 색상입니다. |
|
|
561
561
|
| `lineWidth` | `number` | `2` | Canvas line width입니다. |
|
|
562
562
|
| `canvasName` | `string` | `selector` | canvas layer 이름입니다. 여러 series가 같은 canvas를 공유할 때 지정합니다. |
|
|
563
|
-
| `downsample` | `boolean \| object` | disabled | LTTB
|
|
563
|
+
| `downsample` | `boolean \| object` | disabled | LTTB 또는 픽셀 열별 min/max 축약을 적용합니다. |
|
|
564
564
|
| `asyncRender` | `KChartAsyncRenderConfiguration` | disabled | OffscreenCanvas + Worker line draw를 사용합니다. |
|
|
565
565
|
|
|
566
566
|
### Canvas Point: `createCanvasPointSeries`
|
|
@@ -605,7 +605,7 @@ createTreemapSeries<ProductShare>({
|
|
|
605
605
|
| `color` | `string` | chart color | line 색상입니다. |
|
|
606
606
|
| `lineWidth` | `number` | `1` | WebGL line width입니다. 브라우저/드라이버에 따라 1보다 큰 값이 제한될 수 있습니다. |
|
|
607
607
|
| `canvasName` | `string` | `selector` | WebGL canvas layer 이름입니다. |
|
|
608
|
-
| `downsample` | `boolean \| object` | disabled | LTTB
|
|
608
|
+
| `downsample` | `boolean \| object` | disabled | LTTB 또는 픽셀 열별 min/max 축약을 적용합니다. |
|
|
609
609
|
| `asyncRender` | `KChartAsyncRenderConfiguration` | disabled | OffscreenCanvas + Worker line draw를 사용합니다. |
|
|
610
610
|
|
|
611
611
|
### WebGL Point: `createWebglPointSeries`
|
|
@@ -670,10 +670,17 @@ WebGL point는 현재 interleaved buffer `[x, y, size]` 구조로 GPU에 전달
|
|
|
670
670
|
| Field | Type | Default | Description |
|
|
671
671
|
| --- | --- | --- | --- |
|
|
672
672
|
| `enabled` | `boolean` | `true` when object exists | false이면 downsampling을 끕니다. |
|
|
673
|
-
| `
|
|
673
|
+
| `strategy` | `'lttb' \| 'min-max' \| 'auto'` | `lttb` | `min-max`는 화면의 픽셀 열마다 first/min/max/last를 보존합니다. `auto`는 정렬된 number/time x축에만 min-max를 적용하고 나머지는 LTTB로 돌아갑니다. |
|
|
674
|
+
| `threshold` | `number \| (context) => number` | plot width | LTTB가 줄일 목표 point 수입니다. 보통 chart plot width를 사용하며 min-max 경로에서는 평가하지 않습니다. |
|
|
675
|
+
| `pointsPerPixel` | `number` | `4` | min-max 축약을 시작할 입력 밀도입니다. 보이는 데이터가 `plot width × pointsPerPixel`을 넘으면 축약합니다. 출력은 픽셀 열당 최대 4점과 선 연결용 좌우 경계 이웃 최대 1점씩입니다. |
|
|
674
676
|
| `xAccessor` | `(point) => number` | field 기반 | LTTB x 값 추출 함수입니다. |
|
|
675
677
|
| `yAccessor` | `(point) => number` | field 기반 | LTTB y 값 추출 함수입니다. |
|
|
676
678
|
|
|
679
|
+
`min-max`는 x 값이 오름차순인 고밀도 시계열 line에 적합합니다. 범주형 축,
|
|
680
|
+
비정렬 데이터, 결측값, 커스텀 accessor처럼 픽셀 열을 안전하게 계산할 수 없는 입력은
|
|
681
|
+
`strategy: 'auto'`에서 기존 LTTB 경로를 사용합니다. 명시적인 `min-max`에서는
|
|
682
|
+
알고리즘을 몰래 바꾸지 않고 원본 renderer 입력을 유지합니다.
|
|
683
|
+
|
|
677
684
|
## Worker Rendering
|
|
678
685
|
|
|
679
686
|
KChart의 Worker 렌더링은 opt-in입니다. 현재 파악된 실제 동작 범위는 다음과 같습니다.
|
package/docs/functional-api.md
CHANGED
|
@@ -698,7 +698,7 @@ const chart = createKChart<Point>({
|
|
|
698
698
|
|
|
699
699
|
### Downsampling
|
|
700
700
|
|
|
701
|
-
`createLineSeries`, `createCanvasLineSeries`, `createWebglLineSeries`는 `downsample` 옵션을 지원합니다. `true`를 넘기면 현재 plot width를 기준으로 LTTB가
|
|
701
|
+
`createLineSeries`, `createCanvasLineSeries`, `createWebglLineSeries`는 `downsample` 옵션을 지원합니다. `true`를 넘기면 기존과 동일하게 현재 plot width를 기준으로 LTTB가 적용됩니다. 객체를 넘기면 LTTB, 픽셀 열별 min/max, 안전한 자동 선택 전략을 사용할 수 있습니다.
|
|
702
702
|
|
|
703
703
|
```ts
|
|
704
704
|
createWebglLineSeries<Point>({
|
|
@@ -712,6 +712,30 @@ createWebglLineSeries<Point>({
|
|
|
712
712
|
});
|
|
713
713
|
```
|
|
714
714
|
|
|
715
|
+
정렬된 numeric/time 시계열은 `min-max`가 각 픽셀 열의 진입점, 최솟값,
|
|
716
|
+
최댓값, 이탈점을 원본 순서대로 보존합니다. 화면에 표현할 수 없는 중복 점은
|
|
717
|
+
줄이면서 짧은 피크와 급락은 유지하므로 대용량 모니터링 차트에 적합합니다.
|
|
718
|
+
|
|
719
|
+
```ts
|
|
720
|
+
createWebglLineSeries<Point>({
|
|
721
|
+
selector: 'dense-signal',
|
|
722
|
+
xField: 'time',
|
|
723
|
+
yField: 'signal',
|
|
724
|
+
downsample: {
|
|
725
|
+
strategy: 'auto',
|
|
726
|
+
pointsPerPixel: 4
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
`auto`는 오름차순 number/time x축처럼 픽셀 열을 안전하게 계산할 수 있을 때
|
|
732
|
+
min-max를 사용합니다. 범주형 축, 비정렬 입력, 결측값, 커스텀 accessor는 기존 LTTB로
|
|
733
|
+
fallback합니다. 알고리즘을 고정해야 하는 경우 `strategy: 'lttb'` 또는
|
|
734
|
+
`strategy: 'min-max'`를 명시합니다. 명시적인 min-max가 안전하지 않은 입력을
|
|
735
|
+
만나면 다른 알고리즘으로 바꾸지 않고 원본 renderer 입력을 유지합니다.
|
|
736
|
+
`pointsPerPixel`은 축약을 시작할 입력 밀도이며, 실제 결과는 픽셀 열마다 원본
|
|
737
|
+
순서의 대표점 최대 4개와 선 연결용 좌우 경계 이웃 최대 1개씩으로 제한됩니다.
|
|
738
|
+
|
|
715
739
|
알고리즘 자체도 export됩니다.
|
|
716
740
|
|
|
717
741
|
```ts
|
|
@@ -964,6 +988,7 @@ createWorldCountryMapSeries<Country>({
|
|
|
964
988
|
- [World Country Map StackBlitz](https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-world-country-map-basic?title=KChart%20World%20Country%20Map&file=src/main.ts)
|
|
965
989
|
- [World Activity Map StackBlitz](https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-world-activity-map?title=KChart%20World%20Activity%20Map&file=src/main.ts)
|
|
966
990
|
- [World Photo Marker Map StackBlitz](https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-world-photo-marker-map?title=KChart%20World%20Photo%20Marker%20Map&file=src/main.ts)
|
|
991
|
+
- [World Cluster Map StackBlitz](https://stackblitz.com/fork/github/keneth80/k-chart/tree/main/examples/stackblitz-world-cluster-map?title=KChart%20World%20Cluster%20Map&file=src/main.ts)
|
|
967
992
|
|
|
968
993
|
## Display Options
|
|
969
994
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>KChart Calendar Heatmap Basic</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<main class="calendar-shell">
|
|
10
|
+
<header class="calendar-header">
|
|
11
|
+
<div>
|
|
12
|
+
<p class="eyebrow">Service operations</p>
|
|
13
|
+
<h1>Daily support demand</h1>
|
|
14
|
+
<p>New customer cases opened across the first half of 2026.</p>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="summary" aria-label="Half-year case summary">
|
|
17
|
+
<span>H1 total</span>
|
|
18
|
+
<strong id="case-total">0</strong>
|
|
19
|
+
<small>cases opened</small>
|
|
20
|
+
</div>
|
|
21
|
+
</header>
|
|
22
|
+
<section class="chart-panel" aria-label="Calendar heatmap of daily support cases">
|
|
23
|
+
<div class="heat-legend" aria-label="Cases opened color scale">
|
|
24
|
+
<span>Fewer</span>
|
|
25
|
+
<i style="--swatch:#e9f3ef"></i>
|
|
26
|
+
<i style="--swatch:#bddfd4"></i>
|
|
27
|
+
<i style="--swatch:#79bcae"></i>
|
|
28
|
+
<i style="--swatch:#348a80"></i>
|
|
29
|
+
<i style="--swatch:#075b5a"></i>
|
|
30
|
+
<span>More</span>
|
|
31
|
+
</div>
|
|
32
|
+
<div id="chart" role="img" aria-label="Week columns and weekday rows colored by daily support cases"></div>
|
|
33
|
+
</section>
|
|
34
|
+
</main>
|
|
35
|
+
<script type="module" src="/src/main.ts"></script>
|
|
36
|
+
</body>
|
|
37
|
+
</html>
|