% This is generated by ESQL's SparklineTests. Do not edit it. See docs/reference/query-languages/esql/README.md for how to regenerate it.

## Parameters

`aggregation`
:   Aggregation that calculates the y-axis value of the sparkline graph for each datapoint.

`key`
:   Date expression from which to derive buckets.

`buckets`
:   Target number of buckets.

`from`
:   Start of the range. Can be a date or a date expressed as a string.

`to`
:   End of the range. Can be a date or a date expressed as a string.

