Implement error bars on date axis
Open
Nobody has claimed this yet.
feature
P3
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Originally reported in https://github.com/plotly/plotly.py/issues/1488
Here's an example that specifies error_x and flips between setting the xaxis.type property between 'date' and 'linear'.
CodePen: https://codepen.io/jonmmease/pen/zXrmOK
var fig = {
"data": [
{
"error_x": {
"array": [
100000.0,
100000.0,
100000.0
],
"type": "data",
"visible": true
},
"type": "scatter",
"x": [
1554370371547.085,
1554370471547.085,
1554370571547.085
],
"y": [
6,
10,
2
]
}
],
"layout": {
"xaxis": {
"type": "linear"
// "type": "date"
}
}
}
Plotly.newPlot('myDiv', fig, {showSendToCloud: true});
with xaxis.type: 'linear':

with xaxis.type: 'date':

Contributor guide
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
Start with the CodePen reproduction and compare the plotted error bars when xaxis.type is set to 'linear' versus 'date'. Trace the date-axis and error-bar handling, then verify that error bars render correctly for the supplied date-axis example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100