Closed
Description
There seems to be an issue with specifying line color of a parcoords
trace with an integer TypedArray. All of the values seem to be rounded to the min or max color value.
CodePen: https://codepen.io/jonmmease/pen/QoNgMe?editors=1010
var trace = {
type: 'parcoords',
line: {
color: new Int32Array([0, 1, 2])
// color: new Float32Array([0, 1, 2])
// color: [0, 1, 2]
},
dimensions: [{
range: [1, 5],
label: 'A',
values: [1,4,3]
}, {
range: [1,5],
label: 'B',
values: [3,1.5,2],
}, {
range: [1, 5],
label: 'C',
values: [2,4,1],
}]
};
var data = [trace]
Plotly.plot('graphDiv', data, {}, {showSendToCloud: true});
When line.color
is specified as a standard array or floating point TypedArray: