influxdata / influxdata/giraffe

Single Stat and columns name

Open
#746 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
189
Forks
33
Avg merge
3d 15h
Merged PRs (30d)
4

Description

For a `type: 'single stat'`, when you add columns without standard names `_time` and `_value`, the graph displays the message `No latest value found`.
```
const table = Giraffe.newTable(3)
.addColumn('MyTimestamp', 'dateTime:RFC3339', 'time', [1589838401244, 1589838461244, 1589838521244])
.addColumn('Myvalues', 'double', 'number', [2.58, 7.11, 4.79])
```
This is useful for `Single stat on top of Line Layer` for example to have custom legends
Is it possible to add 'x' and 'y' in layer `SingleStatLayerConfig` ?

Contributor guide

Open the contributing guide

Research direction

Start with the SingleStatLayerConfig entry point and the Giraffe.newTable example in the issue. Trace how a single stat selects time and value columns, then determine how configurable x and y fields should work for custom column names. Done means the example renders its latest value instead of “No latest value found” while preserving the standard _time and _value behavior.

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.