You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to implement the following feature:
User has some additional data that is tricky to show on the regular map (such as comparison between various strains). If user is able to construct a Vega scheme for the graph, then it would be possible to show it Vega graph in the tooltip.
The status so far is that I've forked this repository and created a class representing some basic tooltip that will load predefined json from the dev server. Also tooltip filters the data for the plot using filter construct from the vega-lite.
It looks like that with the simplest graph possible that shows what are the flux values for some reaction.
I'm looking forward to hear if this feature makes some sense in the core escher.
There are some technical challenges so far as welI - I wonder how can I:
Pass a json file to the tooltip using the Builder class
Ensure the proper rendering. I'm not sure what is the best event to connect this tooltip. Right now I've wanted to be 100% certain that the right dom element is there and only after ensuring that attach Vega graph. Because of that the graph appears only after second mouseover.
Implement filtering and other context dependent events to be also specified in the initialization of the component.
The text was updated successfully, but these errors were encountered:
This is a great application of the tooltips. Something like this would be great in Escher core. The biggest bottleneck right now is that support for more than two datasets is not implemented yet. We've had an unfinished implementation of that here for a while: #242
Once that is done (and we can use help from anyone interested!), then Escher will have built-in access to the data that would feed your tooltip.
Also, for Escher core we want to include only one default tooltip, to keep things simple. But I can imagine that when 2+ datasets are loaded, the vega-lite graph you present could be embedded alongside the current tooltip info.
Finally, we are careful about not including too many dependencies that will balloon the size of the Escher javascript bundle. If you can implement the plot in raw d3 instead of vega-lite, that would help too.
Hi,
I'm trying to implement the following feature:
User has some additional data that is tricky to show on the regular map (such as comparison between various strains). If user is able to construct a Vega scheme for the graph, then it would be possible to show it Vega graph in the tooltip.
The status so far is that I've forked this repository and created a class representing some basic tooltip that will load predefined json from the dev server. Also tooltip filters the data for the plot using
filter
construct from the vega-lite.The code lives in the branch
vega-tooltip
hereIt looks like that with the simplest graph possible that shows what are the flux values for some reaction.
I'm looking forward to hear if this feature makes some sense in the core escher.
There are some technical challenges so far as welI - I wonder how can I:
The text was updated successfully, but these errors were encountered: