hierarchic-heatmap-table-component
Version:
A visualisation tool for displaying rows in a hiearchic manner with heatmap capabilities
28 lines (27 loc) • 745 B
JavaScript
var heatmapTableOptions = {
valuesSetting: [
{ value: 'NotDetected', color: 'lightgray'},
{ value: 'Positive', color: 'FFA10A'},
{ value: 'High', color: 'red'}
],
columnWidth: "120px"
}
var heatMapTable = new HeatMapTable({
tableID: "heatmap-table-1",
options: heatmapTableOptions
});
var data = [
{
"rowLabel": "Human anatomical entity",
"values": ["NotDetected", "High", "Positive"],
"children": [
{
"rowLabel": "Fluid and secretion",
"values": ["NotDetected", "High", "Positive"],
"children": []
}
],
}
];
heatMapTable.loadJSONData(data);
heatMapTable.show();