From: Wang Shenwei Date: Tue, 6 Dec 2016 13:05:04 +0000 (+0800) Subject: Correct document for Interaction Modes #3676 (#3684) X-Git-Tag: v2.5.0~1^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6aec98bf8b05f4ad40a4a4b08486bb7452229fce;p=thirdparty%2FChart.js.git Correct document for Interaction Modes #3676 (#3684) 'x-axis' Behaves like 'index' mode with intersect = false --- diff --git a/docs/01-Chart-Configuration.md b/docs/01-Chart-Configuration.md index 0b353d3a8..865a75583 100644 --- a/docs/01-Chart-Configuration.md +++ b/docs/01-Chart-Configuration.md @@ -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.