plotly.js
plotly.js copied to clipboard
Unable to set box.marker.color via template
There is this circular issue as well:
line.color depends on marker.line
https://github.com/plotly/plotly.js/blob/507308b642ce545814dca207118414aff6109d9e/src/traces/box/defaults.js#L33
while marker.line depends on line.color! https://github.com/plotly/plotly.js/blob/507308b642ce545814dca207118414aff6109d9e/src/traces/box/defaults.js#L252
Plotly.validate on mock titled 1.json also fails.
msg: 'In data trace 0, container marker did not get coerced'
The "circularity" was intentional - it's just trying to say that whichever of those colors you set, it provides the default for the other one. But you're right that in a world with templates this kind of logic may not be manageable - we may need to pick one direction for the defaults to flow.