zakandrewking / escher

Build, share, and embed visualizations of metabolic pathways.
https://escher.github.io
Other
210 stars 78 forks source link

Importing text into tooltips #371

Open ParsaGhadermazi opened 2 years ago

ParsaGhadermazi commented 2 years ago

Hi,

I want to add a paragraph of text as a tooltip to each reaction in an Escher map. My question is what is the best way to do this. I have created a json file with a reaction name as key and some text as value. I load this by addressing my json file in the options to escher.Builder in main.js. However, it does not recognize props.data and it returns nothing. Could you please help me solve this?

Thanks, Parsa