[ES|QL: FROM] Change Default Visualization to Line Chart for time series queries
- 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||
|Desired||
#### 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
Assessment
This issue has not been assessed yet.