Plotly.js: Template issues

Created on 27 Sep 2018  路  5Comments  路  Source: plotly/plotly.js

bug

Most helpful comment

Good :eye: @jonmmease , fixed in https://github.com/plotly/plotly.js/pull/3095

All 5 comments

Some info:

Parcoords line colors:

The template propagates fine during react, the problem happens during the parcoords update. We can replicate this bug using restyle and relayout: https://codepen.io/etpinard/pen/YJVrKm


Carpet grid colors:

No bug here (I think). You' need to include startlinecolor and endlinecolor or color in your template: e.g. https://codepen.io/etpinard/pen/ZqKXOo?editors=1010


Polar grid lines:

This line:

https://github.com/plotly/plotly.js/blob/5c4094fc49e910da953b80b06f14e44332afd223/src/plots/polar/layout_defaults.js#L52-L56

is off. In fact, we _do_ need to propagate the template so that the attributes that use coerce2 can reach into _template. This should be an easy fix, PR incoming.

So I've been able to get the carpet grid colors working in the carpet trace directly, but they don't seem to be coming through from the data portion of the template.

https://codepen.io/jonmmease/pen/NOjyya

Does my template data specification here look right?

Good :eye: @jonmmease , fixed in https://github.com/plotly/plotly.js/pull/3095

All the "real" template issues listed here have been resolved.

The parcoords problems are now in -> https://github.com/plotly/plotly.js/issues/3101

Closing.

Was this page helpful?
0 / 5 - 0 ratings