Skip to content

Commit

Permalink
Update legend.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Aug 13, 2024
1 parent dc6e64d commit 8a84311
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/en/docs/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:


Expand Down

0 comments on commit 8a84311

Please sign in to comment.