sparkbar
sparkbar
Introduced in: v21.11
The function plots a frequency histogram for values x and the repetition rate y of these values over the interval [min_x, max_x].
Repetitions for all x falling into the same bucket are averaged, so data should be pre-aggregated.
Negative repetitions are ignored.
If no interval is specified, then the minimum x is used as the interval start, and the maximum x — as the interval end.
Otherwise, values outside the interval are ignored.
Syntax
Aliases: sparkBar
Parameters
buckets— The number of segments.(U)Int*min_x— Optional. The interval start.(U)Int*orFloat*orDecimalmax_x— Optional. The interval end.(U)Int*orFloat*orDecimal
Arguments
x— The field with values.const Stringy— The field with the frequency of values.const String
Returned value
Returns the frequency histogram. String
Examples
Without interval specification
With interval specification