Skip to content
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

BUG: HeatMap fails when axis are updated #4032

Closed
mafar opened this issue Jul 11, 2019 · 2 comments · Fixed by #4038
Closed

BUG: HeatMap fails when axis are updated #4032

mafar opened this issue Jul 11, 2019 · 2 comments · Fixed by #4038
Assignees
Labels
bug something broken

Comments

@mafar
Copy link
Contributor

mafar commented Jul 11, 2019

Seems to be an issue when X and Y are selected before Z

Animated GIF (1.9 MB) : (wait till you see error )
demo

@mafar
Copy link
Contributor Author

mafar commented Jul 11, 2019

https://codepen.io/mafar/pen/Rzdama?editors=0010

Animated GIF: wait till you see error
error

@mafar mafar changed the title BUG: HeatMap fails when given axis BUG: HeatMap fails when axis are updated Jul 11, 2019
@etpinard
Copy link
Contributor

var inputData = {
  A: [69, 69, 65, 61, 59, 61, 53, 68],
  B: [70, 70, 65, 60, 57, 65, 52, 68],
  C: [66, 66, 64, 59, 57, 59, 57, 66],
  D: [61, 59, 59, 61, 61, 61, 57, 62],
  E: [59, 56, 57, 61, 61, 59, 57, 60],
  F: [56, 57, 55, 57, 55, 52, 54, 55],
  G: [49, 47, 49, 53, 53, 53, 59, 48],
  H: [68, 68, 64, 61, 60, 62, 60, 68],
  I: [
    "Agnostic female",
    "Atheist female",
    "Buddhist female",
    "Catholic female",
    "Protestant female",
    "Hindu female",
    "Muslim female",
    "Jewish female"
  ],
  J: [
    "Agnostic male",
    "Atheist male,Buddhist male",
    "Catholic male",
    "Protestant male",
    "Hindu male",
    "Muslim male",
    "Jewish male"
  ]
};

Plotly.newPlot(gd, [{
  type: 'heatmap',
  x: inputData.I,
  y: inputData.J,
  z: [inputData.A]
}])

also spit out the same errors as #4031.

Thanks for the report!

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

Successfully merging a pull request may close this issue.

2 participants