See https://github.com/plotly/plotly.js/pull/2030#discussion_r140511424 ideally with an API somewhat similar to cartesian https://github.com/plotly/plotly.js/pull/1871 and ternary https://github.com/plotly/plotly.js/pull/1952 `layer`.