Found in https://root-forum.cern.ch/t/custom-palette-in-jsroot/64090 Two first rect drawn with same color. Also normal colz drawing shows same problem Need to be checked.