influxdata / influxdata/giraffe

Add a `sort` and `aggregate` option to line layers

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
difficulty/medium kind/feature request team/ui
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.