Replies
Hi Martin,
Thanks for your reply.
I've tried to implement a new component as you indicated. But how can I get data from the graph in this way? I'll explain. Every time I move the mouse the tooltip is displayed, but in this tooltip I have to show the values of the graph corresponding to that position. For example, if I position the mouse on 09/09/2020 within the tooltip, I must be able to see the 09/09/2020 date and the values that the different series assume on that date. How can I get this information using the x and y coordinates? Or is there another way?
Thank you
Luca
Hi Martin,
thank you for your answer. Now I managed to set the tooltip as desired, like this:
But now I have another "problem". Is it possible somehow to make the tooltip "follow" the mouse pointer, so that the tooltip is always close to the mouse pointer and not in a fixed position? And then is it possible to remove or change the style of the tooltip container, because I changed the style of the tooltip so that the background is gray, but the outline remains white …. This is the code of the tooltip style:
style="background-color:#6f6f6f; color:white; border-radius:5px; border-color:#6f6f6f; font-size:15px"
Thanks,
Luca
But if I do this every time I get the tooltip with the data of a single series, instead I need to see the data of all the series everytime
Hi Michal
Thanks for the reply
I tried and now it works!!, but in my case, i need that the tooltip always comes out, not just when you hover over the series. The type that comes closest is the category tooltip but the way I structured the template displays the data twice.
What I managed to do is this
Instead I would need something like this, done with the default tooltip
but with the ability to view it wherever you position the mouse and not just when I pass over a series.
The custom template code is this:
{{item.Date | date}}
{{item.Value[0] | number}}
{{item.Value[1] | number}}
Is it therefore possible to make it display them only once, as in the second image, but with each value next to the color of the corresponding series?
Thanks,
Luca