bar
Draw a bar graph like histogram to inspect the data distribution.
Syntaxβ
bar(size, min, max, width)
Parametersβ
size
: size of the bar, must be within the[min, max]
min
: min value of the barmax
: max value of the barwidth
: width of the bar
Exampleβ
MYSQL > select r, bar(r, 0, 10, 20) as x from table(generate_series(0, 10)) as s(r);
0
1 ββ
2 ββββ
3 ββββββ
4 ββββββββ
5 ββββββββββ
6 ββββββββββββ
7 ββββββββββββββ
8 ββββββββββββββββ
9 ββββββββββββββββββ
10 ββββββββββββββββββββ