In API docs there is info, that Plot can generate legends for color , opacity , and symbol scales. But I cannot find any example with last one. Could you make some simple demonstration how it works?
Yes, here is a basic example:
Plot.dot(penguins, { x: "body_mass", y: "bill_length", symbol: "island", fill: "island" }).plot({symbol: {legend: true}})
As you can see when the color matches the symbol, the symbol legend carries both at the same time.
@Fil Thanx! You save me like always ))