Skip to content

Commit

Permalink
heatmap val issue; fixes #4054
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Nov 25, 2023
1 parent 6a0df12 commit 28bd9ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/charts/HeatMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ export default class HeatMap {
this.negRange = this.helpers.checkColorRange()

let heatSeries = series.slice()

if (w.config.yaxis[0].reversed) {
rev = true
heatSeries.reverse()
}
console.log(heatSeries, 'heatSeries')

for (
let i = rev ? 0 : heatSeries.length - 1;
Expand Down Expand Up @@ -122,7 +124,7 @@ export default class HeatMap {
i,
index: i,
j,
val: heatSeries[i][j],
val: series[i][j],
'stroke-width': this.strokeWidth,
stroke: w.config.plotOptions.heatmap.useFillColorAsStroke
? color
Expand Down

0 comments on commit 28bd9ba

Please sign in to comment.