Graflume · Alpha
Carpet · 극단 사례 적용
논리 좌표 격자를 제공된 물리 좌표로 휘게 만들고 점이나 등고선을 같은 표면에 겹칩니다. 성공할 수 있는 유효 데이터 안에서 수치 범위, 희소 구조와 대용량 입력을 검증합니다. 각 탭은 필요할 때만 데이터를 만들며 잘못된 값은 조용히 보정하지 않습니다.
차트 계열 · 고급 차트 계열
Carpet
논리 좌표 격자를 제공된 물리 좌표로 휘게 만들고 점이나 등고선을 같은 표면에 겹칩니다.
- Quick API
carpet()- 브라우저 스냅샷
graflume/complete- mark
carpet- 프리셋
- 3
극단 사례
값의 범위·불규칙 구조·대용량 입력
성공할 수 있는 유효 데이터 안에서 수치 범위, 희소 구조와 대용량 입력을 검증합니다. 각 탭은 필요할 때만 데이터를 만들며 잘못된 값은 조용히 보정하지 않습니다.
큰 값·작은 값
0과 매우 작은 유한값부터 매우 큰 유한값까지 함께 넣어 자동 도메인, 정밀도와 기하가 무너지지 않는지 확인합니다. NaN과 Infinity는 의도적으로 거부됩니다. 유한값과 축 도메인을 보존하는 데이터 무결성 규칙 2개를 적용합니다.
상태불러오는 중
extreme-rangeextreme-smallextreme-largezeromixed-signbudget:marks<=6
불러오는 중
큰 값·작은 값 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
aquantitative | bquantitative | pxquantitative | pyquantitative | valuequantitative |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | -1e+12 |
| 1 | 0 | 1 | 0.161 | -1e-09 |
| 2 | 0 | 2 | 0.279 | 0 |
| 3 | 0 | 3 | 0.333 | 1e+12 |
| 4 | 0 | 4 | 0.334 | 1e-09 |
| 5 | 0 | 5 | 0.317 | 1e+06 |
브라우저 API · 이식 가능한 스키마
브라우저 API
Graflume.carpet()
const data = [
{
"a": 0,
"b": 0,
"px": 0,
"py": 0,
"value": -1000000000000
},
{
"a": 1,
"b": 0,
"px": 1,
"py": 0.161,
"value": -1e-9
},
{
"a": 2,
"b": 0,
"px": 2,
"py": 0.279,
"value": 0
},
{
"a": 3,
"b": 0,
"px": 3,
"py": 0.333,
"value": 1000000000000
},
{
"a": 4,
"b": 0,
"px": 4,
"py": 0.334,
"value": 1e-9
},
{
"a": 5,
"b": 0,
"px": 5,
"py": 0.317,
"value": 1000000
}
];
const options = {
"accessibility": {
"description": "A warped coordinate surface retains two peaks and its underlying topology. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Carpet"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"value": "value",
"x": "px",
"y": "py"
},
"options": {
"levels": 4,
"mode": "grid"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Carpet"
},
"width": "container",
"x": {
"field": "a",
"title": "Carpet axis A",
"type": "quantitative"
},
"y": {
"field": "b",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Carpet axis B",
"type": "quantitative"
}
};
Graflume.carpet('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A warped coordinate surface retains two peaks and its underlying topology. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Carpet"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"value": "value",
"x": "px",
"y": "py"
},
"options": {
"levels": 4,
"mode": "grid"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Carpet"
},
"width": "container",
"x": {
"field": "a",
"title": "Carpet axis A",
"type": "quantitative"
},
"y": {
"field": "b",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Carpet axis B",
"type": "quantitative"
}
}희소·불규칙 구조
중복, 결측, 희소성, 순서 뒤바뀜 중 이 계열에서 의미가 정의된 구조만 실행합니다. 잘못된 참조나 깨진 튜플을 성공 예제로 위장하지 않습니다. 결측·중복·순서의 의미를 보존하는 구조 규칙 3개를 적용합니다.
상태불러오는 중
irregular-structuresparseduplicate-cellout-of-ordernullbudget:marks<=7
불러오는 중
희소·불규칙 구조 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
aquantitative | bquantitative | pxquantitative | pyquantitative | valuequantitative |
|---|---|---|---|---|
| 2 | 0 | 2 | 0.279 | 33.429 |
| 0 | 0 | 0 | 0 | — |
| 2 | 0 | 2 | 0.279 | 33.429 |
| 3 | 0 | 3 | 0.333 | 37.437 |
| 4 | 0 | 4 | 0.334 | 34.696 |
| 5 | 0 | 5 | 0.317 | 27.231 |
| 1 | 0 | 1 | 0.161 | 25.566 |
브라우저 API · 이식 가능한 스키마
브라우저 API
Graflume.carpet()
const data = [
{
"a": 2,
"b": 0,
"px": 2,
"py": 0.279,
"value": 33.429
},
{
"a": 0,
"b": 0,
"px": 0,
"py": 0,
"value": null
},
{
"a": 2,
"b": 0,
"px": 2,
"py": 0.279,
"value": 33.429
},
{
"a": 3,
"b": 0,
"px": 3,
"py": 0.333,
"value": 37.437
},
{
"a": 4,
"b": 0,
"px": 4,
"py": 0.334,
"value": 34.696
},
{
"a": 5,
"b": 0,
"px": 5,
"py": 0.317,
"value": 27.231
},
{
"a": 1,
"b": 0,
"px": 1,
"py": 0.161,
"value": 25.566
}
];
const options = {
"accessibility": {
"description": "A warped coordinate surface retains two peaks and its underlying topology. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Carpet · 희소·불규칙 구조"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"value": "value",
"x": "px",
"y": "py"
},
"options": {
"levels": 4,
"mode": "grid"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Carpet · 희소·불규칙 구조"
},
"width": "container",
"x": {
"field": "a",
"title": "Carpet axis A",
"type": "quantitative"
},
"y": {
"field": "b",
"title": "Carpet axis B",
"type": "quantitative"
}
};
Graflume.carpet('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A warped coordinate surface retains two peaks and its underlying topology. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Carpet · 희소·불규칙 구조"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"value": "value",
"x": "px",
"y": "py"
},
"options": {
"levels": 4,
"mode": "grid"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Carpet · 희소·불규칙 구조"
},
"width": "container",
"x": {
"field": "a",
"title": "Carpet axis A",
"type": "quantitative"
},
"y": {
"field": "b",
"title": "Carpet axis B",
"type": "quantitative"
}
}대용량 데이터
결정적인 압축 레시피를 탭을 열 때만 생성합니다. Graflume의 성능 프로필이 입력량에 맞춰 표식 수, 적중 검사와 애니메이션 비용을 제한합니다. 결정적 생성과 출력 제한을 보장하는 대용량 규칙 6개를 적용합니다. 이 계열은 논리 입력 65,536 셀를 생성하고 막대 표식 출력을 최대 16,384개로 제한합니다.
상태불러오는 중
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:65536zoom-pan-resetbudget:bar-marks<=16384
- 범례:
legend · continuous · value - 포인트·범위 하이라이트:
highlights[] · datum · a - 설명 말풍선:
annotations[] · datum · a · callout · placement:auto
불러오는 중
브라우저 API · 이식 가능한 스키마
브라우저 API
Graflume.carpet()
const recipe = {
"cardinality": {
"axes": {
"columns": 256,
"rows": 256
},
"sourceRows": 65536,
"unit": "cells"
},
"expectedInvariants": [
"finite-json",
"finite-carpet-coordinate"
],
"id": "grid-2d",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 16384,
"resource": "bar-marks"
},
"parameters": {
"columns": 256,
"family": "carpet",
"nullableFields": [
"value"
],
"positiveFields": [],
"rows": 256,
"scenario": "volume",
"valueFields": [
"value"
],
"valuePolicy": "signed"
},
"preview": {
"maximumRows": 12,
"method": "spatial-slice"
},
"reduction": {
"method": "area-weighted-grid-downsample",
"stage": "level-of-detail"
},
"seed": 1529851770,
"shape": "rows",
"version": 2
};
const { data, previewRows, plan } = Graflume.materializeDemoRecipe(recipe);
const options = {
"accessibility": {
"description": "확대·이동은 화면을 살펴보기 위한 기능이며 데이터 축이나 값은 바꾸지 않습니다. 재생 조작이 보이는 차트에서는 원본 데이터에서 고유값이 처음 등장한 순서대로 실제 단계만 이동합니다.",
"label": "Carpet · 대용량 데이터"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "데이터, 축 범위 또는 화면 위치에 사용자가 작성한 안전한 텍스트 설명을 연결합니다.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "a",
"type": "datum",
"value": -0.49153
},
"text": "포인트·범위 하이라이트 · -0.49153"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 65536
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "a",
"type": "datum",
"value": -0.49153
}
}
],
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "차트 조작",
"enterFullscreen": "전체 화면 열기",
"exitFullscreen": "전체 화면 닫기",
"exportPng": "PNG 다운로드",
"hideAnnotations": "설명 말풍선 숨기기",
"loop": "반복 재생",
"nextFrame": "다음 프레임",
"pause": "일시 정지",
"play": "재생",
"previousFrame": "이전 프레임",
"reset": "보기 초기화",
"seek": "재생 위치",
"showAnnotations": "설명 말풍선 표시",
"speed": "재생 속도",
"zoomIn": "확대",
"zoomOut": "축소"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"field": "a",
"format": "number",
"label": "A"
},
{
"field": "b",
"format": "number",
"label": "B"
},
{
"field": "px",
"format": "number",
"label": "Px"
},
{
"field": "py",
"format": "number",
"label": "Py"
},
{
"field": "value",
"format": "number",
"label": "값"
}
],
"title": "Carpet · 대용량 데이터",
"trigger": "mark"
}
},
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "숨기기",
"show": "표시"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "값",
"visible": true
},
"locale": "ko",
"mark": {
"fields": {
"value": "value",
"x": "px",
"y": "py"
},
"options": {
"levels": 4,
"mode": "grid"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "A warped coordinate surface retains two peaks and its underlying topology · 65,536 logical rows, screen-aware detail",
"text": "Carpet · 대용량 데이터"
},
"width": "container",
"x": {
"field": "a",
"title": "Carpet axis A",
"type": "quantitative"
},
"y": {
"field": "b",
"title": "Carpet axis B",
"type": "quantitative"
}
};
Graflume.carpet('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"accessibility": {
"description": "확대·이동은 화면을 살펴보기 위한 기능이며 데이터 축이나 값은 바꾸지 않습니다. 재생 조작이 보이는 차트에서는 원본 데이터에서 고유값이 처음 등장한 순서대로 실제 단계만 이동합니다.",
"label": "Carpet · 대용량 데이터"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "데이터, 축 범위 또는 화면 위치에 사용자가 작성한 안전한 텍스트 설명을 연결합니다.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "a",
"type": "datum",
"value": -0.49153
},
"text": "포인트·범위 하이라이트 · -0.49153"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 65536
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "a",
"type": "datum",
"value": -0.49153
}
}
],
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "차트 조작",
"enterFullscreen": "전체 화면 열기",
"exitFullscreen": "전체 화면 닫기",
"exportPng": "PNG 다운로드",
"hideAnnotations": "설명 말풍선 숨기기",
"loop": "반복 재생",
"nextFrame": "다음 프레임",
"pause": "일시 정지",
"play": "재생",
"previousFrame": "이전 프레임",
"reset": "보기 초기화",
"seek": "재생 위치",
"showAnnotations": "설명 말풍선 표시",
"speed": "재생 속도",
"zoomIn": "확대",
"zoomOut": "축소"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"field": "a",
"format": "number",
"label": "A"
},
{
"field": "b",
"format": "number",
"label": "B"
},
{
"field": "px",
"format": "number",
"label": "Px"
},
{
"field": "py",
"format": "number",
"label": "Py"
},
{
"field": "value",
"format": "number",
"label": "값"
}
],
"title": "Carpet · 대용량 데이터",
"trigger": "mark"
}
},
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "숨기기",
"show": "표시"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "값",
"visible": true
},
"locale": "ko",
"mark": {
"fields": {
"value": "value",
"x": "px",
"y": "py"
},
"options": {
"levels": 4,
"mode": "grid"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "A warped coordinate surface retains two peaks and its underlying topology · 65,536 logical rows, screen-aware detail",
"text": "Carpet · 대용량 데이터"
},
"width": "container",
"x": {
"field": "a",
"title": "Carpet axis A",
"type": "quantitative"
},
"y": {
"field": "b",
"title": "Carpet axis B",
"type": "quantitative"
}
}