Heatmap global coloring

Dear Datagrok Team,

I am wondering whether it would be possible to apply a global coloring scheme for heatmap? If I understand right, the current coloring scheme is normalized within each column. For example, a value of 0.5 will be colored differently in different columns depending on the column-wise max and min values. Would it be possible to add a global coloring scheme that all values from the same heatmap will be colored consistently (and an option to select which column to apply this global coloring to) including both categorical and continuous values?

I know that I could manually adjust the color scheme for each column, but this becomes less feasible for big heatmaps with > 50 columns.

In addition, would it be possible to increase the max number of columns of a heatmap from 100 to 200?

Thank you!
Best,
Ling

Hi Ling!
You can apply global coloring scheme through the context panel of heat map. i.e. the global min-max would be used for coloring. to do this, you can click on the gear icon on the heatmap and search for ‘Global Color Scaling’ checkbox, and enable it. Alternatively, right click on heat map and enable global scaling through Properties → Misc (image 2).

As for the max heatmap columns: while the slider goes only to 100, you can manually type in 200 (or more) and it will work as well. We will discuss the option to increase it as well, but you can use this workaround for now.

I hope this helps.
Best.
Davit.


1 Like

Hi Ling,

Thanks for the feedback! In addition to what Davit mentioned, we have also set the max number of columns that the slider goes to 1,000, and by default we now show the first 100 columns instead of 25 like before. This will be included in the upcoming 1.23 release.

Best,
Andrew

Thank you so much for the helpful information! It’s great to know that the feature has already been implemented!

Best,
Ling