Skip to content

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
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
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