Graflume · Alpha

Bar · 차트 고유 기능

범주별 크기를 공통 기준선에서 시작하는 막대로 비교합니다. Graflume 공개 카탈로그에 등록된 이 계열의 모든 실행 모드입니다. 각 탭은 독립 데이터, 옵션, Quick API와 지원 기능 근거를 가집니다.

차트 계열 · 기본 차트 계열

Bar

범주별 크기를 공통 기준선에서 시작하는 막대로 비교합니다.

Quick API
bar()
브라우저 스냅샷
graflume
mark
bar
프리셋
9

차트 고유 기능

이 차트만의 고유한 실행 기능

Graflume 공개 카탈로그에 등록된 이 계열의 모든 실행 모드입니다. 각 탭은 독립 데이터, 옵션, Quick API와 지원 기능 근거를 가집니다.

Bar chart

Bar chart 모드가 실행 가능한 데이터와 옵션으로 보여주는 핵심 기능: horizontal and vertical bars · automatic total and segment labels.

상태불러오는 중

  • bar
  • horizontal and vertical bars
  • automatic total and segment labels
Graflume.horizontalBar() Canvas 2D
조작 도움말

확대·이동은 화면을 살펴보기 위한 기능이며 데이터 축이나 값은 바꾸지 않습니다. 재생 조작이 보이는 차트에서는 원본 데이터에서 고유값이 처음 등장한 순서대로 실제 단계만 이동합니다.

Tab으로 조작부를 이동하고 Enter 또는 Space로 실행하세요. 차트에 초점이 있을 때 더하기·빼기 키로 확대·축소하고 화살표 키로 이동할 수 있습니다.

자동 배치는 둘레 후보를 비교해 차트·범례·다른 말풍선과의 겹침을 가능한 한 피합니다. 명시한 위치는 필요한 안전 보정만 적용해 유지합니다. 말풍선 글자는 상자 안에서 안전하게 자동 줄바꿈됩니다. 끊어지지 않는 긴 토큰은 정해진 줄 수 안에서 시각적으로 축약하지만, 보조 기술에는 원문 전체를 유지합니다.

불러오는 중

브라우저 API · 이식 가능한 스키마

브라우저 API

Graflume.horizontalBar()

const data = [
  {
    "category": "Insights",
    "high": 91,
    "low": 81,
    "previous": 74,
    "target": 88,
    "value": 86,
    "width": 24
  },
  {
    "category": "Dashboards",
    "high": 84,
    "low": 72,
    "previous": 69,
    "target": 82,
    "value": 78,
    "width": 21
  },
  {
    "category": "Reports",
    "high": 76,
    "low": 63,
    "previous": 65,
    "target": 74,
    "value": 69,
    "width": 18
  },
  {
    "category": "Alerts",
    "high": 68,
    "low": 55,
    "previous": 48,
    "target": 66,
    "value": 61,
    "width": 15
  },
  {
    "category": "Models",
    "high": 56,
    "low": 42,
    "previous": 41,
    "target": 55,
    "value": 48,
    "width": 12
  },
  {
    "category": "Exports",
    "high": 45,
    "low": 31,
    "previous": 34,
    "target": 44,
    "value": 37,
    "width": 10
  }
];

const options = {
  "accessibility": {
    "description": "확대·이동은 화면을 살펴보기 위한 기능이며 데이터 축이나 값은 바꾸지 않습니다. 재생 조작이 보이는 차트에서는 원본 데이터에서 고유값이 처음 등장한 순서대로 실제 단계만 이동합니다.",
    "label": "Bar example"
  },
  "axes": {
    "x": {
      "labels": {
        "maxLength": 18,
        "orientation": "vertical-up",
        "padding": 10
      },
      "ticks": {
        "spacing": 10
      }
    },
    "y": {
      "format": {
        "type": "compact"
      }
    }
  },
  "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
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "tooltip": {
      "axis": "x",
      "fields": [
        {
          "field": "value",
          "format": "number",
          "label": "값"
        },
        {
          "field": "category",
          "format": "auto",
          "label": "범주"
        }
      ],
      "title": "Bar",
      "trigger": "axis"
    }
  },
  "locale": "ko",
  "mark": {
    "orientation": "horizontal"
  },
  "padding": {
    "bottom": 112,
    "left": 64,
    "right": 30,
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Bar chart 모드가 실행 가능한 데이터와 옵션으로 보여주는 핵심 기능: horizontal and vertical bars · automatic total and segment labels.",
    "text": "Bar"
  },
  "width": "container",
  "x": {
    "field": "value",
    "title": "Adoption (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "category",
    "title": "Capability",
    "type": "ordinal"
  }
};

Graflume.horizontalBar('#chart', data, options);

이식 가능한 스키마

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "확대·이동은 화면을 살펴보기 위한 기능이며 데이터 축이나 값은 바꾸지 않습니다. 재생 조작이 보이는 차트에서는 원본 데이터에서 고유값이 처음 등장한 순서대로 실제 단계만 이동합니다.",
    "label": "Bar example"
  },
  "axes": {
    "x": {
      "labels": {
        "maxLength": 18,
        "orientation": "vertical-up",
        "padding": 10
      },
      "ticks": {
        "spacing": 10
      }
    },
    "y": {
      "format": {
        "type": "compact"
      }
    }
  },
  "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
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "tooltip": {
      "axis": "x",
      "fields": [
        {
          "field": "value",
          "format": "number",
          "label": "값"
        },
        {
          "field": "category",
          "format": "auto",
          "label": "범주"
        }
      ],
      "title": "Bar",
      "trigger": "axis"
    }
  },
  "locale": "ko",
  "mark": {
    "orientation": "horizontal"
  },
  "padding": {
    "bottom": 112,
    "left": 64,
    "right": 30,
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Bar chart 모드가 실행 가능한 데이터와 옵션으로 보여주는 핵심 기능: horizontal and vertical bars · automatic total and segment labels.",
    "text": "Bar"
  },
  "width": "container",
  "x": {
    "field": "value",
    "title": "Adoption (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "category",
    "title": "Capability",
    "type": "ordinal"
  }
}

Catalog

Modes · compatibility identifiers

The source-controlled catalog maps callable modes in this family and compatibility identifiers to their canonical modes. This table contains executable entries only.

9 modes · 8 compatibility identifiers

Bar · supported modes · representative bar
IDNameQuick APImodemarkrenderer
barBar charthorizontalBar()horizontalbarcanvas
columnColumn chartcolumn()verticalbarcanvas
pictorial-barPictorial bar chartpictorialBar()pictorialpictorial-barcanvas
bulletBullet chartbullet()bulletbulletcanvas
column-pyramidColumn pyramid chartcolumnPyramid()column-pyramidpyramidcanvas
cylinderCylinder chartcylinder()cylindercylindercanvas
lollipopLollipop chartlollipop()lollipoplollipopcanvas
pictorial-columnPictorial column chartpictorialColumn()pictorial-columnpictorial-barcanvas
variable-widthVariable width column chartvariableWidth()variable-widthvariwidecanvas
Bar · compatibility identifiers
IdentifierCanonical mode ID
barbar
bulletbullet
columncolumn
columnpyramidcolumn-pyramid
cylindercylinder
lollipoplollipop
pictorialpictorial-column
variwidevariable-width

매뉴얼

통합 체크리스트

ARIA · table fallback

접근성

Canvas ARIA 메타데이터에 텍스트 요약과 표 대체 표현을 함께 제공합니다.

standard · large · ultra

성능

standard·large·ultra 프로필은 렌더링 작업량을 제한합니다.