Skip to content

Fix scatter3d marker.line.color inheritance #754

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

Merged
merged 3 commits into from
Jul 25, 2016
Merged

Conversation

etpinard
Copy link
Contributor

fixes #750

The 🍖 of this PR is in b9a471e where we now explicitly skip line.color --> marker.line.color inheritance when line.color is an array.

The errors described in #750 were due to the colorscale calc step complaining about gd.data[i].marker.line not being defined. Errors here are fine as hasColorscale(marker.line) should be false unless the user make marker.line.color support a colorscale. The problem was in the default step.

etpinard added 3 commits July 19, 2016 14:21
- fix typo in line.color -> marker.color logic
- don't make marker.line.color inherit from line.color
  if line.color is an array.
@etpinard etpinard added bug something broken status: reviewable labels Jul 19, 2016
@@ -18,9 +18,10 @@ var subTypes = require('./subtypes');

module.exports = function markerDefaults(traceIn, traceOut, defaultColor, layout, coerce) {
var isBubble = subTypes.isBubble(traceIn),
lineColor = !Array.isArray(traceIn.line) ? (traceIn.line || {}).color : undefined,
lineColor = (traceIn.line || {}).color,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@etpinard etpinard added this to the v1.15.0 milestone Jul 19, 2016
@@ -21,7 +21,8 @@ module.exports = function calc(trace, vals, containerStr, cLetter) {
if(containerStr) {
container = Lib.nestedProperty(trace, containerStr).get();
inputContainer = Lib.nestedProperty(trace._input, containerStr).get();
} else {
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😖 gah!

@etpinard etpinard merged commit e6d8d17 into master Jul 25, 2016
@etpinard etpinard deleted the scatter3d-mlc-inherit branch July 25, 2016 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plotly toImage and snapshot not working for scatter3D plot
2 participants