mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
'x-axis' Behaves like 'index' mode with intersect = false
This commit is contained in:
parent
152ce9c9f8
commit
6aec98bf8b
@ -324,7 +324,7 @@ nearest | Gets the item that is nearest to the point. The nearest item is determ
|
||||
single (deprecated) | Finds the first item that intersects the point and returns it. Behaves like 'nearest' mode with intersect = true.
|
||||
label (deprecated) | See `'index'` mode
|
||||
index | Finds item at the same index. If the `intersect` setting is true, the first intersecting item is used to determine the index in the data. If `intersect` false the nearest item is used to determine the index.
|
||||
x-axis (deprecated) | Behaves like `'index'` mode with `intersect = true`
|
||||
x-axis (deprecated) | Behaves like `'index'` mode with `intersect = false`
|
||||
dataset | Finds items in the same dataset. If the `intersect` setting is true, the first intersecting item is used to determine the index in the data. If `intersect` false the nearest item is used to determine the index.
|
||||
x | Returns all items that would intersect based on the `X` coordinate of the position only. Would be useful for a vertical cursor implementation. Note that this only applies to cartesian charts
|
||||
y | Returns all items that would intersect based on the `Y` coordinate of the position. This would be useful for a horizontal cursor implementation. Note that this only applies to cartesian charts.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user