Skip to content

Commit

Permalink
fix typo on api.md (#9030)
Browse files Browse the repository at this point in the history
  • Loading branch information
esuEichi committed May 5, 2021
1 parent e021a77 commit f5c51af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/developers/api.md
Expand Up @@ -103,7 +103,7 @@ To get an item that was clicked on, `getElementsAtEventForMode` can be used.

```javascript
function clickHandler(evt) {
const points = myChart.getElementAtEventForMode(evt, 'nearest', { intersect: true }, true);
const points = myChart.getElementsAtEventForMode(evt, 'nearest', { intersect: true }, true);

if (points.length) {
const firstPoint = points[0];
Expand Down

0 comments on commit f5c51af

Please sign in to comment.