Skip to content

heatmap yaxis category axes can support sequence ? #2570

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
XiepengLi opened this issue Apr 18, 2018 · 2 comments
Closed

heatmap yaxis category axes can support sequence ? #2570

XiepengLi opened this issue Apr 18, 2018 · 2 comments

Comments

@XiepengLi
Copy link

I change Annotated Heat Map with Plotly.js Charts demo to:
`
var xValues = ['A', 'B', 'C', 'D', 'E'];

var yValues = ['W', 'X', 'Y', 'Z','W', 'X', 'Y', 'Z'];

var zValues = [
[0.00, 0.00, 0.75, 0.75, 0.00],
[0.00, 0.00, 0.75, 0.75, 0.00],
[0.75, 0.75, 0.75, 0.75, 0.75],
[0.00, 0.00, 0.00, 0.75, 0.00],
[0.75, 0.75, 0.75, 0.75, 0.75],
[0.00, 0.00, 0.00, 0.75, 0.00],
[0.75, 0.75, 0.75, 0.75, 0.75],
[0.00, 0.00, 0.00, 0.75, 0.00],
[0.75, 0.75, 0.75, 0.75, 0.75]
];
`
but yaxis only show 'W', 'X', 'Y', 'Z' as 'W', 'X', 'Y', 'Z','W', 'X', 'Y', 'Z' is expected.

@XiepengLi
Copy link
Author

As I add yaxis sequence to 100+ items, some item just hide to fit the height of canvas.

@alexcjohnson
Copy link
Collaborator

duplicate of #1516 - see in particular the ticktext/tickvals workaround posted there

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

No branches or pull requests

2 participants