You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title of the first orange datapoints tooltip should be '3' (see codepen below)
Title of the first grey datapoints tooltip should be '2'
Current Behavior
Title of the first orange datapoints tooltip is '1'
Title of the first grey datapoints tooltip is '1'
Possible Solution
Besides having this fixed (in case this actually is unexpected behaviour), I would appreciate if instead of just having {{ x: number, y: number }} for each datapoint also having the option to add labels {{ x: number, y: number, xLabel: string, yLabel: string }} which will be used in the Tooltip. Might be easier to use than the callbacks. Or #6009
For a workaround, you can try to insert this in your options object:
tooltips: {callbacks: {title: (datapoints,{ datasets })=>{const{ datasetIndex, index }=datapoints[0]returndatasets[datasetIndex].data[index].x}}},
Expected Behavior
Title of the first orange datapoints tooltip should be '3' (see codepen below)
Title of the first grey datapoints tooltip should be '2'
Current Behavior
Title of the first orange datapoints tooltip is '1'
Title of the first grey datapoints tooltip is '1'
Possible Solution
Besides having this fixed (in case this actually is unexpected behaviour), I would appreciate if instead of just having {{ x: number, y: number }} for each datapoint also having the option to add labels {{ x: number, y: number, xLabel: string, yLabel: string }} which will be used in the Tooltip. Might be easier to use than the callbacks. Or #6009
For a workaround, you can try to insert this in your options object:
Steps to Reproduce (for bugs)
https://codepen.io/sezanzeb/pen/pozBgGB
Context
displaying outliers next inside a linechart which is the average of multiple datapoints
Environment
The text was updated successfully, but these errors were encountered: