User interaction: measurement between two points #836
Replies: 2 comments
-
I don't understand the user interaction you are looking for but to implement custom clients, you can look at these docs: https://idl.uw.edu/mosaic/web-clients/. |
Beta Was this translation helpful? Give feedback.
-
My understanding is that you'd like users to be able to:
I don't think this is achievable with the current declarative specs. You could create a param and bind an interval selection to it to capture a user selected interval, but there's no way to then calculate the distance between interval end points within the spec. However, if you are using the JS API (not a YAML or JSON spec) there should be some relatively simple things you could do:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to implement a domain-specific user interaction on a plot I am building.
The user needs to be able to measure the "distance" between two points.
For that, I need the user to be able to manually trace a segment between two points on the plot (not limited to actual lines, the points can be anywhere).
Is there a way to implement that user interaction with mosaic at the moment?
I feel like this is currently not part of the specs.
If it's not possible to represent that symbolically in the specs, it means that this should be implemented with custom JavaScript (D3.js probably?). Is there any guideline / example for how to extend a mosaic plot with custom D3.js code?
Thanks ❤️
Beta Was this translation helpful? Give feedback.
All reactions