Skip to content

parcoords line coloring error with integer TypedArray #3595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jonmmease opened this issue Mar 2, 2019 · 3 comments
Closed

parcoords line coloring error with integer TypedArray #3595

jonmmease opened this issue Mar 2, 2019 · 3 comments
Assignees
Labels
bug something broken

Comments

@jonmmease
Copy link
Contributor

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

@archmoj
Copy link
Contributor

archmoj commented Mar 3, 2019

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

@archmoj
Copy link
Contributor

archmoj commented Mar 3, 2019

@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.

@etpinard
Copy link
Contributor

etpinard commented Mar 4, 2019

fixed in #3598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

3 participants