Wired axis in heatmap, the last data can not be 0 or '0' for x/y values

hi guys,
I want to plot a heatmap with data:
var xValues = [0,1, 2, 3];
var yValues = [0, 1, 2, 3];
var zValues = [
[null, null, null, null],
[null,96, 97, 98],
[null,86, 87, 88],
[null,76, 77, 78],
and it shows the chart correctly:
and this is the codepen link:
axis: category/asc

but when I order the axis by ‘des’, the axis can disappeared.

newplot(1) a

and this is the codepen link:

anyone can tell me if this is a bug, or how should I set the configurations?

it seems the data value ‘0’ can only be the first data in x/y data values.

Thanks for the report. It is indeed a bug on our side.

You can subscribe to https://github.com/plotly/plotly.js/issues/3684 for the most up-to-date development info.

In the meantime, here’s a workaround starting from https://codepen.io/ghfan/pen/rRRLWQ and using axis.autorange: 'reversed' : https://codepen.io/etpinard/pen/GeapNR