From 8a84311f20ad53fae39dde14e5b7837829dd2a59 Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Tue, 13 Aug 2024 03:03:02 +0300 Subject: [PATCH] Update legend.md --- docs/en/docs/legend.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/en/docs/legend.md b/docs/en/docs/legend.md index b5c252848..252cfac00 100644 --- a/docs/en/docs/legend.md +++ b/docs/en/docs/legend.md @@ -24,11 +24,10 @@ public function layout(): array } ``` -![This image shows an illustrative legend for a User model.](/img/layouts/legend.png) - - In the example above, the first argument passed to the `Layout::legend()` method is the key for the data to be displayed. This key should correspond to an array or model that has been passed to the screen's `query` method. The second argument is an array of `Sight` objects, each representing a data point to be displayed. +![This image shows an illustrative legend for a User model.](/img/layouts/legend.png) + Many methods of the `Sight` class are similar to those of the `TD` class used in the [Table](/en/docs/table) layout. For example, you can add a popover to provide additional information about a data point: