Skip to content

parcoords line coloring error with integer TypedArray #3595

Closed

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

Activity

  1. self-assigned this
    on Mar 3, 2019
  2. added
    bug
    on Mar 3, 2019
  3. archmoj commented on Mar 3, 2019

    @archmoj
    Contributor

    @jonmmease looking at parcoords code I thought a similar issue may be existed for values. And yes here is codepen demonstrating that.

  4. archmoj commented on Mar 3, 2019

    @archmoj
    Contributor

    @jonmmease looking at parcoords code I thought a similar issue may be existed for values. And yes here is codepen demonstrating that.

    Which would be also addressed in PR #3598.

  5. etpinard commented on Mar 4, 2019

    @etpinard
    Contributor

    fixed in #3598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions