워드 트리
같은 단어에서 시작하거나 끝나는 문장의 갈래를 따라가세요.
워드 트리
가장 단순한 차트
차트를 살펴보고, 표에서 원본 데이터를 확인하세요. 아래에서 같은 예제의 코드를 펼칠 수 있습니다.
기본 예제
불러오는 중
기본 예제 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}- Quick API
wordTree()- 브라우저 스냅샷
graflume- mark
word-tree- 프리셋
- 1
minimal-implementation
공통 기능
모든 차트에서 사용하는 기능
기능 탭을 선택해 헤더, 도구 설명, 테마, 범례, 강조, 말풍선, 선택, 화면 제어와 접근성을 하나씩 적용한 결과와 코드를 비교하세요. 데이터 표식 위에 마우스를 올리세요. 지원하는 차트에서는 축을 따라 커서를 움직이면 가장 가까운 값을 볼 수 있습니다. 모든 정확한 값은 아래 표에서 확인할 수 있습니다.
헤더
차트 안에 제목과 보조 설명을 넣어 무엇을 보여주는지 먼저 밝힙니다.
불러오는 중
헤더 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"title": {
"subtitle": "Word tree 모드가 실행 가능한 데이터와 옵션으로 보여주는 핵심 기능: prestructured phrase hierarchy · weighted labels and links.",
"text": "워드 트리"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"title": {
"subtitle": "Word tree 모드가 실행 가능한 데이터와 옵션으로 보여주는 핵심 기능: prestructured phrase hierarchy · weighted labels and links.",
"text": "워드 트리"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}header
도구 설명
마크 또는 축을 가리키면 정확한 값을 보여줍니다. 날짜·시간은 locale, 형식과 시간대를 사용자가 선언형 옵션으로 정할 수 있습니다.
불러오는 중
도구 설명 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"field": "word",
"format": "auto",
"label": "단어"
},
{
"field": "weight",
"format": "number",
"label": "가중치"
},
{
"field": "parent",
"format": "auto",
"label": "상위 단어"
}
],
"title": "워드 트리 · 도구 설명",
"trigger": "mark"
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"field": "word",
"format": "auto",
"label": "단어"
},
{
"field": "weight",
"format": "number",
"label": "가중치"
},
{
"field": "parent",
"format": "auto",
"label": "상위 단어"
}
],
"title": "워드 트리 · 도구 설명",
"trigger": "mark"
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}tooltip
테마
상단 선택기의 현재 내장 테마를 옵션에 적용하고 모든 활성 예제를 함께 갱신합니다.
불러오는 중
테마 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}theme
범례
계열, 범주 또는 연속 값의 시각적 의미를 차트와 함께 설명합니다.
불러오는 중
범례 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "상위 단어"
},
{
"id": "semantic-1",
"label": "단어"
}
],
"labels": {
"hide": "숨기기",
"show": "표시"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "워드 트리 · 범례",
"visible": true
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "상위 단어"
},
{
"id": "semantic-1",
"label": "단어"
}
],
"labels": {
"hide": "숨기기",
"show": "표시"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "워드 트리 · 범례",
"visible": true
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}legend
- 범례:
legend · explicit · 2 channels
강조
대표 데이터나 공간 위치를 시각적으로 강조해 읽을 지점을 안내합니다.
불러오는 중
강조 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "word",
"type": "datum",
"value": "Scales"
}
}
],
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "word",
"type": "datum",
"value": "Scales"
}
}
],
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}highlight
- 포인트·범위 하이라이트:
highlights[] · datum · word
말풍선
자동 충돌 회피와 다국어 줄바꿈을 사용하는 설명 말풍선을 표시합니다.
불러오는 중
말풍선 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"annotations": [
{
"connector": {
"visible": true
},
"detail": "데이터, 축 범위 또는 화면 위치에 사용자가 작성한 안전한 텍스트 설명을 연결합니다.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "word",
"type": "datum",
"value": "Scales"
},
"text": "포인트·범위 하이라이트 · Scales"
}
],
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"controls": {
"annotations": true,
"labels": {
"controls": "차트 조작",
"enterFullscreen": "전체 화면 열기",
"exitFullscreen": "전체 화면 닫기",
"exportPng": "PNG 다운로드",
"hideAnnotations": "설명 말풍선 숨기기",
"loop": "반복 재생",
"nextFrame": "다음 프레임",
"pause": "일시 정지",
"play": "재생",
"previousFrame": "이전 프레임",
"reset": "보기 초기화",
"seek": "재생 위치",
"showAnnotations": "설명 말풍선 표시",
"speed": "재생 속도",
"zoomIn": "확대",
"zoomOut": "축소"
}
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"annotations": [
{
"connector": {
"visible": true
},
"detail": "데이터, 축 범위 또는 화면 위치에 사용자가 작성한 안전한 텍스트 설명을 연결합니다.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "word",
"type": "datum",
"value": "Scales"
},
"text": "포인트·범위 하이라이트 · Scales"
}
],
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"controls": {
"annotations": true,
"labels": {
"controls": "차트 조작",
"enterFullscreen": "전체 화면 열기",
"exitFullscreen": "전체 화면 닫기",
"exportPng": "PNG 다운로드",
"hideAnnotations": "설명 말풍선 숨기기",
"loop": "반복 재생",
"nextFrame": "다음 프레임",
"pause": "일시 정지",
"play": "재생",
"previousFrame": "이전 프레임",
"reset": "보기 초기화",
"seek": "재생 위치",
"showAnnotations": "설명 말풍선 표시",
"speed": "재생 속도",
"zoomIn": "확대",
"zoomOut": "축소"
}
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}callout
- 설명 말풍선:
annotations[] · datum · word · callout · placement:auto
선택
데이터를 선택하고 토글하며 배경이나 Esc 키로 안전하게 해제합니다.
불러오는 중
선택 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "대화형 선택",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "word",
"mode": "multiple",
"toggle": true
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "대화형 선택",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "word",
"mode": "multiple",
"toggle": true
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}selection
- 대화형 선택:
selection · multiple · toggle
화면 제어
확대, 이동, 초기화, 투영, 전체 화면과 PNG 내보내기 메뉴를 각각 표시하거나 숨깁니다. controls: false이면 제어 막대 전체를 제거합니다.
불러오는 중
화면 제어 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"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
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"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
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}controls
접근성
ARIA 설명, 키보드 안내와 의미 있는 데이터 표를 함께 제공합니다.
불러오는 중
접근성 · 행 데이터
행 데이터와 zero-copy TypedArray 열은 하나의 데이터 계약을 공유합니다.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 100 | — |
| Statistics | 88 | Visualization |
| Interaction | 81 | Visualization |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Scales | 61 | Statistics |
| Uncertainty | 56 | Statistics |
| Keyboard | 51 | Accessibility |
| Contrast | 47 | Accessibility |
| Themes | 43 | Canvas |
| Tooltips | 39 | Canvas |
코드와 설정 보기
브라우저 API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Statistics",
"weight": 61,
"word": "Scales"
},
{
"parent": "Statistics",
"weight": 56,
"word": "Uncertainty"
},
{
"parent": "Accessibility",
"weight": 51,
"word": "Keyboard"
},
{
"parent": "Accessibility",
"weight": 47,
"word": "Contrast"
},
{
"parent": "Canvas",
"weight": 43,
"word": "Themes"
},
{
"parent": "Canvas",
"weight": 39,
"word": "Tooltips"
}
];
const options = {
"accessibility": {
"description": "확대·이동은 화면을 살펴보기 위한 기능이며 데이터 축이나 값은 바꾸지 않습니다. 재생 조작이 보이는 차트에서는 원본 데이터에서 고유값이 처음 등장한 순서대로 실제 단계만 이동합니다.",
"label": "워드 트리 · 접근성 example"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);이식 가능한 스키마
ChartSpec 0.1 · options
{
"accessibility": {
"description": "확대·이동은 화면을 살펴보기 위한 기능이며 데이터 축이나 값은 바꾸지 않습니다. 재생 조작이 보이는 차트에서는 원본 데이터에서 고유값이 처음 등장한 순서대로 실제 단계만 이동합니다.",
"label": "워드 트리 · 접근성 example"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "ko",
"mark": {
"fields": {
"parent": "parent"
}
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}accessibility