Back to Elasticsearch

Sparkline

docs/reference/query-languages/esql/kibana/docs/functions/sparkline.md

9.4.1370 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

SPARKLINE

The values representing the y-axis values of a sparkline graph for a given aggregation over a period of time.

esql
FROM employees
| STATS sparkline = SPARKLINE(COUNT(*), hire_date, 20, "1985-01-01T00:00:00Z", "1985-12-31T00:00:00Z")