Home › forums › Using CanvasJS › Shared tooltip without common X variable
Tagged: shared tooltip independent arguments
This topic contains 1 reply, has 2 voices, and was last updated by Bivek Singh 10 months ago.
I made chart that represents 4 independent temperatures. I also had to simplify database so in affect neither of lines share Date on X axis.
I would like to use shared tooltip but it shows usually only one value in certain point in my case. Is it possible to show estimated value from another dataPoints (or the nearest value) in shared tooltip?
Shared tooltip works for dataPoints sharing the same X values by default. You can use entries of contentFormatter to modify the tooltip as per your requirements. Entries contains all the dataSeries and dataPoints which can be used to find the nearest value and show it in toolTip.
You must be logged in to reply to this topic.