From cf929237e1a467b1062af134fec367631bc3801e Mon Sep 17 00:00:00 2001 From: Marcus Olsson Date: Mon, 15 Mar 2021 10:03:44 +0100 Subject: [PATCH] Update plugin annotations docs (#31808) --- .../sources/developers/plugins/add-support-for-annotations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/developers/plugins/add-support-for-annotations.md b/docs/sources/developers/plugins/add-support-for-annotations.md index 13a815e1d7c..5f0f4c8d5aa 100644 --- a/docs/sources/developers/plugins/add-support-for-annotations.md +++ b/docs/sources/developers/plugins/add-support-for-annotations.md @@ -14,7 +14,7 @@ This guide assumes that you're already familiar with how to [Build a data source To enable annotation support for your data source, add the following two lines of code. Grafana uses your default query editor for editing annotation queries. -1. Add `"annotations": true` to the [plugin.json]({{< relref "metadata.md" >}}) file. +1. Add `"annotations": true` to the [plugin.json]({{< relref "metadata.md" >}}) file to let Grafana know that your plugin supports annotations. **plugin.json** @@ -24,7 +24,7 @@ To enable annotation support for your data source, add the following two lines o } ``` -2. In `datasource.ts`, override the `annotations` method from `DataSourceApi`. For the default behavior, you can set `annotations` to an empty object. +2. In `datasource.ts`, override the `annotations` property from `DataSourceApi`. For the default behavior, you can set `annotations` to an empty object. **datasource.ts**