BAR (Lakehouse v2)
Returns a visual bar string representation of a value within a range. Useful for text-based visualizations.
Analyze Syntax
Section titled “Analyze Syntax”func.bar(<value>, <min>, <max>, <width>)Analyze Examples
Section titled “Analyze Examples”func.bar(50, 0, 100, 20)
┌──────────────────────┐│ ██████████ │└──────────────────────┘SQL Syntax
Section titled “SQL Syntax”BAR(<value>, <min>, <max>, <width>)SQL Examples
Section titled “SQL Examples”SELECT score, BAR(score, 0, 100, 20) AS bar FROM students;
┌───────┬──────────────────────┐│ score │ bar │├───────┼──────────────────────┤│ 25 │ █████ ││ 50 │ ██████████ ││ 75 │ ███████████████ ││ 100 │ ████████████████████ │└───────┴──────────────────────┘