]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Correct document for Interaction Modes #3676 (#3684)
authorWang Shenwei <wangshenwei@qq.com>
Tue, 6 Dec 2016 13:05:04 +0000 (21:05 +0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Tue, 6 Dec 2016 13:05:04 +0000 (08:05 -0500)
'x-axis' Behaves like 'index' mode with intersect = false

docs/01-Chart-Configuration.md

index 0b353d3a8bd57f44865c7538b059791ab7c919ca..865a75583791bcd2f384c14dc8f7b795e398a5bc 100644 (file)
@@ -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.