-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Implement connectGaps #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
fb00e1f
3f47983
a4c4e0d
e9ef5fe
cce8ba8
1b2072a
3535f8d
1f2a689
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,12 @@ module.exports = { | |
y: makeProjectionAttr('y'), | ||
z: makeProjectionAttr('z') | ||
}, | ||
connectgaps: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's use the value object from connectgaps: scatterAttrs.connectgaps, |
||
valType: 'boolean', | ||
role: 'style', | ||
dfl: false, | ||
description: 'Connects gaps in data' | ||
}, | ||
line: { | ||
color: scatterLineAttrs.color, | ||
width: scatterLineAttrs.width, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout | |
|
||
coerce('text'); | ||
coerce('mode'); | ||
coerce('connectgaps'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
|
||
if(subTypes.hasLines(traceOut)) { | ||
handleLineDefaults(traceIn, traceOut, defaultColor, coerce); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"data": [{ | ||
"type": "scatter3d", | ||
"mode": "lines", | ||
"x": [0, 1, 2, 3, 4, 5], | ||
"y": [0, 1, 2, 3, 4, 5], | ||
"z": [2, 1, null, null, 0, 3], | ||
"connectgaps": false | ||
}], | ||
"layout": { | ||
"title": "connect gaps test" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's check that gaps in {
"data": [{
"type": "scatter3d",
"mode": "lines",
"x": [0, 0, null, null, 0, 0],
"y": [0, 1, 2, 3, 4, 5],
"z": [2, 1, null, null, 0, 3],
"connectgaps": false,
"name": "gap in z"
}, {
"type": "scatter3d",
"mode": "lines",
"x": [1, 1, 1, 1, 1, 1],
"y": [0, 1, null, null, 4, 5],
"z": [2, 1, 2, 0, 0, 3],
"connectgaps": false,
"name": "gap in y"
},{
"type": "scatter3d",
"mode": "lines",
"x": [2, 2, null, null, 2, 2],
"y": [0, 1, 2, 3, 4, 5],
"z": [2, 1, 2, 0, 0, 3],
"connectgaps": false,
"name": "gap in x"
}],
"layout": {
"title": "connect gaps test",
}
} |
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this line should be:
so that the corresponding image baseline is displayed properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops! that screwed up when I rebased