y-axis for enumeration type data
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 463
- PR merge metrics
- No merged PRs in 30d
Description
I have data which is based on an enumerations. Examples are ON, Off and CONNECTED, DISCONNECTED.
Given the following data I'd want to plot a stepped graph where the x-axis is the time and the y-axis shows 'OFF' where the values is equal to 0 and 'ON' where the value is equal to 1.
const timestamps = [1680303634,1680307231,1680310833,1680314432,1680318033,1680321633];
const values = [0,1,1,1,0,0];
Also it would be good to ensure that there y-axis is not has padding at the top and bottom so the bars, for 0, have some height rather than than being level with the x-axis.
Can this be done?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named in the issue. Start by locating the chart's axis and stepped-series configuration, then determine how categorical y-axis labels and non-padded 0/1 bounds are currently handled; done means the supplied ON/OFF data renders as a stepped graph with labeled y-axis values and visible bars.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100