누적 막대 차트
누적 막대는 범주별 합계와 그 구성을 보여 줍니다. 정규화된 누적 막대는 합계를 생략하고 대신 비율을 보여 주며, 이는 다른 질문에 답하는 방식입니다.
둘 중 하나를 선택하기 전에 어떤 질문에 답하려는지 먼저 정하세요.
#이 차트가 적합한 경우
#데이터 형식 요구 사항
#실제 예제
팀별 이슈 상태(누적형):
새 다이어그램에 붙여 넣어 편집할 수 있는 소스입니다.
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Open issues by team and status",
"width": 380,
"height": 220,
"data": {"values": [
{"team": "Platform", "status": "Open", "count": 24},
{"team": "Platform", "status": "In progress", "count": 12},
{"team": "Platform", "status": "Blocked", "count": 5},
{"team": "Apps", "status": "Open", "count": 31},
{"team": "Apps", "status": "In progress", "count": 18},
{"team": "Apps", "status": "Blocked", "count": 2},
{"team": "Data", "status": "Open", "count": 11},
{"team": "Data", "status": "In progress", "count": 9},
{"team": "Data", "status": "Blocked", "count": 7}
]},
"mark": "bar",
"encoding": {
"x": {"field": "team", "type": "nominal", "title": null},
"y": {"field": "count", "type": "quantitative", "title": "Issues"},
"color": {"field": "status", "type": "nominal", "title": "Status"}
}
}
#사용자가 자주 놓치는 몇 가지
막대 간에 쉽게 비교할 수 있는 것은 맨 아래 세그먼트뿐입니다. 가장 중요한 항목을 그곳에 두세요.
비율을 보려면 스택을 normalize로 설정하고 합계는 표시하지 마세요.
세그먼트는 세 개 또는 네 개가 현실적인 한계입니다.
보기 좋은 차트가 아니라 질문에 맞는 차트를 선택하세요.