eweitz / ideogram

Chromosome visualization for the web
https://eweitz.github.io/ideogram
Other
287 stars 72 forks source link

Histogram with tooltip? #344

Open jdhayhurst opened 1 year ago

jdhayhurst commented 1 year ago

Hi, great work on the ideogram library!

Is it possible to have tooltips in the histogram layout? Currently, the tooltips work well with the annotation shapes layout, but it would useful to be able to view at least the coordinates and count as a tooltip in the histogram layout.

Thanks!

eweitz commented 1 year ago

Neat idea, @jdhayhurst! Could you give an example use case of how this would be valuable?

jdhayhurst commented 1 year ago

Hey @eweitz!

An example use case for us is that we would like to visualise where on the genome has the most genome wide associations for a given trait (after filtering by significance and combining from multiple GWAS). Users can see roughly where on the genome has the most GWA (annotations) in the histogram view but in order to ask further questions they require more information. With the tooltip, more information about regions/bars of interests can be displayed by hovering their mouse over a bar. The tooltip would display the genomic region that the bar covers and a count of the annotations (magnitude of bar), and ideally a customisable summary/aggregation of the annotation data/metadata.

I'd love to know if this is at all possible.

Thanks!