influxdata / influxdata/giraffe
Add a `sort` and `aggregate` option to line layers
- Dominant language
- TypeScript
- Stars
- 189
- Forks
- 33
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 4
Description
A line layer should have `sort` and `aggregate` options.
If there are multiple `y` values for a particular `x` value, the `aggregate` option defines how to plot those `y` values as a single point. It should support common aggregate operations like `mean`, `median`, `mode`, `max`, `min`, etc.
`sort` defines the ordering of points within a group in the table (which controls the ordering of line segments in the plot).
Contributor guide
Research direction
Start by locating the line-layer implementation and the code that groups table rows by x values. Trace how points are ordered and how multiple y values are currently plotted. Done means line layers accept sort and aggregate options, support common aggregation operations such as mean, median, mode, max, and min, and produce the specified point ordering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100