influxdata / influxdata/giraffe

Line graph shading should not be limited to just vertical shading

Open
#669 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement team/dumplings team/ui
Dominant language
TypeScript
Stars
189
Forks
33
Avg merge
3d 15h
Merged PRs (30d)
4

Description

Line graph shading is very primitive and needs improvement. The "shadeBelow" option is very literal. It does not care that a line graph can be flipped sideways (time as the y-axis, value as the x-axis).

Proposal: "shadeBelow" should be smarter: allow the user to specify the shaded dimension, and have sensible defaults that follows the time axis by shading appropriately.

Here is an example of incorrect shading when time axis is flipped with the value axis:
Screen Shot 2021-08-26 at 10 00 32 AM

The correct shading would be shading that goes from the vertical axis' border on the left to the line points, ie left-to-right shading.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the line graph implementation and the shadeBelow option, then reproduce the sideways time/value-axis case shown in the issue. Done means users can specify the shaded dimension and the default follows the time axis, producing left-to-right shading when the axes are flipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.