Displaying data values in a heatmap

I would like to create a heatmap as per the JavaScript Heatmap node, but with the data values for each cell shown as if it were a formatted table. Is this possible?

More generally, the ability to colour table cells according to their value would be a really valuable addition to KNIME, so I hope we see it before too long!

Hi @AngusVeitch,

as for your first question: I don’t think this feature exists (yet), unfortunately, but this sounds like a nice addition to the “table view” node I’ll ask for.

The second thing is already there :slight_smile: If you right click on a column header, you can choose the renderer. If you select “Gray Scale”, this columns cells will be shown in - well - gray (black: max, white: min). Any normalization you would have to do beforehand, by adjusting the whole table (possibly adding a row for each the min and max values).
image

In File → Preferences, the renderer can be turned on by default, if you fancy it.

Hope that helps!
Best
Lukas

Hang on, @janina just introduced me to a great example on how to use CSS-Styling to color cells based on their value. I tried to build a view-component based on that, that uses the same technique to color the cells the “Table View” Node, see this example:

I’m sure this needs some refinement, but maybe you can play with that and adjust it to your needs?

2 Likes

Hello @AngusVeitch,

request noted. (Internal Reference: AP-5485)

Br,
Ivan

1 Like

Hi @LukasS, thanks for that. It’s nice to know that there is a hacky solution available at least! I’ll look forward to a less hacky solution hopefully emerging some day in the future.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.