Skip to content

Commit

Permalink
Update getElementAtEvent docs per #3237
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Mar 4, 2017
1 parent a79950a commit 094a9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/developers/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ myLineChart.generateLegend();

## .getElementAtEvent(e)

Calling `getElementAtEvent(event)` on your Chart instance passing an argument of an event, or jQuery event, will return the single element at the event position. If there are multiple items within range, only the first is returned
Calling `getElementAtEvent(event)` on your Chart instance passing an argument of an event, or jQuery event, will return the single element at the event position. If there are multiple items within range, only the first is returned. The value returned from this method is an array with a single parameter. An array is used to keep a consistent API between the `get*AtEvent` methods.

```javascript
myLineChart.getElementAtEvent(e);
Expand Down

0 comments on commit 094a9e9

Please sign in to comment.