-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show marker across all 3 metric visualisation on dashboards #1240
Comments
@JBAhire @anandtiwary @aaron-steinfeld Please share your thoughts here? cc: @subintp |
@aaron-steinfeld @anandtiwary @itssharmasandeep Whenever the mouse changes on a cartesian chart, an observable will emit those changes. All the other cartesian charts will be listening to the observable. If any change occurs, a tooltip will be shown on that particular location. This is how I plan to implement it. |
@anandtiwary , we need to close this as it's been in requirements for quite some time now. Can we please close this asap? |
My thoughts - first propose and settle on what the dashboard JSON would look like. That usually looks like a shared parent that handles it, or a shared identifier that they can use to coordinate (e.g. Then, at the component level, we can figure out how to go from there. With the shared identifier, that likely could operate basically like a topic name, and using a shared service to publish and subscribe to tooltip events. Anyway, will let @anandtiwary and @itssharmasandeep take it from here :) |
@JBAhire In the current implementation, we already show data from all three widgets in a single tooltip. Please refer to this screenshot. What you have in the mock is very time-consuming to implement and honestly we had explored it in the past before finalizing the current solution (as shown in the screenshot above). Like Aaron explained above, this ask would require us to track and show mouse movements on adjacent widgets. We can definitely come up with a solution, but before we go there, please let us know what you think about the current solution as presented in the screenshot. |
@anandtiwary , yes I am aware of the current implementation. The use-case Razorpay wants to solve here is being able to visualize and correlate deviations across all three key metrics. With current implementation I can see number but I am not sure if this is higher than usual, lower than usual or just normal pattern. Having 3 correlated markers provides us that capability. |
Okay, @jyothishjose6190 please start an implementation proposal. Mainly how would you do it, what changes would be required in cartesian chart, widget... would we need a separate widget? And what would be an overall estimate for this change. We can start from there. |
@aaron-steinfeld @anandtiwary @itssharmasandeep I have created a JSON for the new container component named cartesian-container-widget. Cartesian chart listens for all mouse event( mouseenter and mouseleave). Currently we are calling showTooltip method on mouseenter and hiding it on mouseleave. Instead of this, we can emit on mouse event with locationdata using an interaction handler. The interaction handler will update the service observable. All cartesian charts will be listening to this observable. They will show/hide tooltip based on this emitted value. changes
|
@jyothishjose6190 i think this is a good proposal and i would just like to make following small modifications.
|
Show marker across all 3 metric visualizations on dashboards when we are going through any of the metric visualizations. This will help us to correlate latency spike easily with the error or call rate spike and vice versa.
![Screenshot 2021-11-08 at 9 17 17 AM](https://user-images.githubusercontent.com/86998924/140683190-6834d5bd-d99d-40ed-8270-e5ff8c02de30.png)
The text was updated successfully, but these errors were encountered: