-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
Firstly, I want to apologize if this is not a bug, but a feature request or my misunderstanding of the documentation.
https://jsfiddle.net/e1dnwhgc/16/
The cursor is positioned closer to the first tick.

The screenshot shows that there is no data for the red line for the first tick, but the first point of the red line is displayed in the tooltip and hovered on the chart.
Expected Behavior
It is logical that since the mode is index, the first index from the dataset is taken. However, it was expected to work relative to ticks, like mode x.
Current Behavior
The first index is taken from datasets.
Possible Solution
Either correct the logic of the index, or add a new mode that would work as an index but relative to the value of x.
Environment
- Chart.js version: 3.6.0
Thank you in advance
Reactions are currently unavailable