Skip to content
Snippets Groups Projects
Commit 5f885826 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add a better tooltip on LE-LLE biplot hover

Former-commit-id: 6378ccdbda7ae16cb76c2d4ce35a96e06cbccf23
parent 3cf40c20
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@
backgroundColor: "rgba(211,211,211, 0.5)",
data: otherFamiliesData
},
{ label: '{{ compound.best_activity_ppi_name}} family',
{ label: compoundFamily,
borderColor: "rgba(54, 162, 235, 1)",
backgroundColor: "rgba(54, 162, 235, 0.5)",
data: currentFamilyData
......@@ -134,6 +134,14 @@
type: 'linear',
position: 'bottom'
}]
},
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
var dataItem = data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
return "compound " + dataItem.id + " on PPI " + dataItem.family_name;
}
}
}
}
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment