Skip to content

Parallel coordinates chart handle normalized data #2468

@weilixu

Description

@weilixu

Hi, I am working with a group of normalized data, each data range is between 0 to 1. I want to use the parallel coordinate chart to do data visualization, however, the chart did not produce the correct tick value for the y-axes.

Below is the code I am testing on the https://codepen.io/plotly/pen/ZepaxM, simply change the first dictionary in the dimension can reproduce the error.

var trace = {
  type: 'parcoords',
  line: {
    color: 'blue'
  },
	
  dimensions: [{
    range: [0.1, 0.5],
    constraintrange: [0.1, 0.2],
    label: 'A',
    values: [0.1,0.4]
  }, {    
    range: [1,5],
    label: 'B',
    values: [3,1.5],
    tickvals: [1.5,3,4.5]
  }, {
    range: [1, 5],
    label: 'C',
    values: [2,4],
    tickvals: [1,2,4,5],
    ticktext: ['text 1','text 2','text 4','text 5']
  }, {
    range: [1, 5],
    label: 'D',
    values: [4,2]
  }]
};

var data = [trace]

Plotly.plot('graphDiv', data);

screen shot 2018-03-09 at 9 07 55 pm

With this code, notice the y-axis for the first dimension has changed to 100s + 'm' - which easily to be misunderstood as the unit meter.

Any suggestions on solving this issue will be appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions