Clickhouse 条形图📊函数展示
Clickhouse 条形图📊函数展示
1.bar(x, min, max, width)
x:表示数值
min:最小长度
max:最大的长度
width: 宽度
1 select DepartmentID, 2 round(sum(total),0) as Amount, 3 bar(Amount, 0, 600000, 20) AS bar 4 from test 5 group by DepartmentID 6 order by Amount desc ;
结果👇: