plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Unable to set box.marker.color via template

Open archmoj opened this issue 5 years ago • 3 comments
trafficstars

Minimal demo

archmoj avatar Apr 13 '20 16:04 archmoj

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

archmoj avatar Apr 13 '20 16:04 archmoj

Plotly.validate on mock titled 1.json also fails.

 msg: 'In data trace 0, container marker did not get coerced' 

archmoj avatar Apr 13 '20 16:04 archmoj

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.

alexcjohnson avatar Apr 13 '20 18:04 alexcjohnson