제안 시스템

디자인킷 · 그래프

묶음 막대 2계열 4묶음(값 자리판)

D-그래프-묶음막대-값자리

묶음 막대 2계열 4묶음(값 자리판)

언제 쓰는가

같은 항목을 두 시점 또는 두 대상(개편 전과 후, 우리와 경쟁)으로 나란히 비교할 때. D-그래프-묶음막대-2계열과 같은 쓰임이며 막대 높이가 값 자리(style height)라 원고에서 숫자만 바꿔 쓸 수 있음. 묶음 3~5개, 계열 2개 고정, 묶음 이름 8자 이내. 강조 묶음 1개(둘째 계열 막대만 강조색). 값 바꾸는 법: .gp 하나가 한 묶음(.b.a=첫째 계열, .b.c=둘째 계열, 각 style height = 값 ÷ 축 최댓값 × 100%, 안의 span=값 라벨, .x=묶음 이름). 가로 눈금은 25% 간격(축 최댓값의 1/4). 강조 묶음 하나에 class="hot". 범례 글자는 .lg. 묶음 3~5개.

참고

Financial Times Visual Vocabulary(https://ft-interactive.github.io/visual-vocabulary/)의 magnitude 가운데 paired column 방식을 참고한 기존 D-그래프-묶음막대-2계열의 값 자리판. 막대를 SVG 대신 HTML 요소의 style height 로 바꿈. 직접 제작.

조각

<div class="dk dk-e-gbar"><div class="dk-card">
<p class="tt"><span>페이지 유형별 검색 유입 지수 · 최고 100 기준 · 예시 값</span><span class="lg"><span><i class="sa"></i>개편 전</span><span><i class="sc"></i>개편 후</span></span></p>
<div class="pl">
<div class="gp"><div class="bs"><div class="b a" style="height:48%"><span>48</span></div><div class="b c" style="height:66%"><span>66</span></div></div><p class="tx">상품 상세</p></div>
<div class="gp"><div class="bs"><div class="b a" style="height:41%"><span>41</span></div><div class="b c" style="height:52%"><span>52</span></div></div><p class="tx">분류 목록</p></div>
<div class="gp hot"><div class="bs"><div class="b a" style="height:30%"><span>30</span></div><div class="b c" style="height:71%"><span>71</span></div></div><p class="tx">블로그 글</p></div>
<div class="gp"><div class="bs"><div class="b a" style="height:12%"><span>12</span></div><div class="b c" style="height:38%"><span>38</span></div></div><p class="tx">자주 묻는 질문</p></div>
</div></div></div>

스타일

.dk-e-gbar .dk-card{padding:22px 32px 18px}
.dk-e-gbar .tt{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;font-size:var(--f-cap);color:var(--mu)}
.dk-e-gbar .tt > span:first-child{font-weight:600;color:var(--ink2)}
.dk-e-gbar .lg{display:flex;gap:16px}
.dk-e-gbar .lg span{display:flex;align-items:center;gap:6px}
.dk-e-gbar .lg i{display:block;width:10px;height:10px;border-radius:2px}
.dk-e-gbar .lg .sa{background:var(--g2)}
.dk-e-gbar .lg .sc{background:var(--g4)}
.dk-e-gbar .pl{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding-top:24px}
.dk-e-gbar .bs{height:240px;display:flex;align-items:flex-end;justify-content:center;gap:8px;border-bottom:1px solid var(--line2);background:linear-gradient(var(--line),var(--line)) 0 0/100% 1px no-repeat,linear-gradient(var(--line),var(--line)) 0 60px/100% 1px no-repeat,linear-gradient(var(--line),var(--line)) 0 120px/100% 1px no-repeat,linear-gradient(var(--line),var(--line)) 0 180px/100% 1px no-repeat}
.dk-e-gbar .b{position:relative;width:64px;border-radius:3px 3px 0 0;background:var(--g2)}
.dk-e-gbar .b.c{background:var(--g4)}
.dk-e-gbar .b span{position:absolute;left:0;right:0;top:-23px;text-align:center;font-size:var(--f-sm);line-height:1.4;color:var(--mu);font-variant-numeric:tabular-nums}
.dk-e-gbar .b.c span{color:var(--ink);font-weight:600}
.dk-e-gbar .tx{margin:10px 0 0;text-align:center;font-size:var(--f-sm);color:var(--ink2)}
.dk-e-gbar .gp.hot .b.c{background:var(--ac)}
.dk-e-gbar .gp.hot .b.c span{color:var(--ac);font-size:var(--f-md);top:-27px}
.dk-e-gbar .gp.hot .tx{color:var(--ink);font-weight:600}