elastic / elastic/kibana

[ES|QL: FROM] Change Default Visualization to Line Chart for time series queries

Open
#251,663 1 comment 0 reactions 0 assignees View on GitHub
Team:Visualizations
Dominant language
TypeScript
Stars
21.3k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

### Summary

In the previous [ticket](https://github.com/elastic/kibana/issues/244656), we changed the default chart suggestion to line for PromQL and TS time series.

In this ticket, we want to implement a similar logic for the FROM queries. Note that this change should be only applied to the queries that return a date column. For example:

|State|Screenshot|
|---|---|
|Now|Image|
|Desired|Image|

#### Edge cases
There are some edge cases to consider and should be discussed with PMs.
1. `FROM kibana_sample_data_logstsdb`
2. When there is only COUNT/SUM aggregation? ([comment](https://elastic.slack.com/archives/C013C7Z2X8W/p1770206784803029?thread_ts=1770200741.719579&cid=C013C7Z2X8W))

### Acceptance criteria
- Based on the decision about which time series queries should suggest line chart by default, adjust the API suggestion to cover both
- Discover
- Dashboard > ES|QL

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.