Skip to content

[3.6.0] intersect with different sizes datasets #9873

@xr0master

Description

@xr0master

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.
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions