In a LineChart, can the tooltip show the values between 2 points (with interpolation)? #4015
Unanswered
tran-simon
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Can you provide more information on your chart or your chart code? Is your x axis categorial or numerical? (it looks numerical but it might still be acting as categorical) |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a line chart that compares 2 series of data (x is time in seconds, y is the value)
The two series are not perfectly synced, so for example series A might be
[{x: 3, y: 10}, {x: 5, y: 15}, {x: 6, y: 20}]
and series B[{x: 3, y: 8}, {x: 4, y: 13}, {x: 5, y: 8}]
Currently, when I hover the chart, the tooltip only appears for exact points. So if I hover around x=4, I can see either "Series A: x=3, y=10", "Series A: x=5, y=15" or "Series B: x=4, y=13", but I can't see data from both series at the same time.
I would like to be able to show values from all series at the same point, with interpolation. So when the user hovers x=4, the tooltip would show "x=4. Series A: y=12.5. Series B: y=13"
Is this possible? thanks
[EDIT] Sandbox
Beta Was this translation helpful? Give feedback.
All reactions