Skip to content

parcoords line coloring error with integer TypedArray #3595

Closed
@jonmmease

Description

@jonmmease

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:

newplot 4

When line.color is specified as an integer TypedArray:
newplot 3

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions