콘텐츠로 이동

범위 내 값을 시각적인 막대 문자열로 표현하여 반환합니다. 텍스트 기반 시각화에 유용합니다.

func.bar(<value>, <min>, <max>, <width>)
func.bar(50, 0, 100, 20)
┌──────────────────────┐
│ ██████████ │
└──────────────────────┘
BAR(<value>, <min>, <max>, <width>)
SELECT score, BAR(score, 0, 100, 20) AS bar FROM students;
┌───────┬──────────────────────┐
│ score │ bar │
├───────┼──────────────────────┤
│ 25 │ █████ │
│ 50 │ ██████████ │
│ 75 │ ███████████████ │
│ 100 │ ████████████████████ │
└───────┴──────────────────────┘