Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

Color palette for the heatmap?

I have data containing values in range of integers [1,2,3,4,5]. What is to best way to display that data in a chart? I thought about displaying a heat map with fixed set of colors, like

var colorscaleValue = [
[1, ‘#F1433F’],
[2, ‘#F7E967’],
[3, ‘#A9CF54’],
[4, ‘#70B7BA’],
[5, ‘#3D4C53’]
];

but plot.ly seems to interpolate the color values. Is it possible to define fixed set of colors in a heatmap? If not, is there a different chart to display my data with the palette?