Is your feature request related to a problem? Please describe.
Actually, the legend shows only the series names. We should also add the ability to include any annotation to the legend with it's own marker/colors/icons


Describe the solution you'd like
We should have a prop in the Annotation component that describe if we want that annotation displayed on the legend or not. (By default, to avoid breaking changes, that option should be off).
The legend should display the name/id of the annotation + one of the following:
- the marker/icon if the LineAnnotation has a marker configured
- a small vertical/horizontal line if the LineAnnotation doesn't have a marker configured, the color should be the same of the annotation stroke
- a small square with the same fill/opacity of the RectAnnotation
- Annotation groupings should be toggleable the same as chart series in the legend.
The legend item for each annotation should also allow the user to hide/show the group of annotations.
Describe alternatives you've considered
n/a
Additional context
The requests comes from #522
Kibana Cross Issues
Checklist
Is your feature request related to a problem? Please describe.
Actually, the legend shows only the series names. We should also add the ability to include any annotation to the legend with it's own marker/colors/icons
Describe the solution you'd like
We should have a prop in the Annotation component that describe if we want that annotation displayed on the legend or not. (By default, to avoid breaking changes, that option should be off).
The legend should display the name/id of the annotation + one of the following:
The legend item for each annotation should also allow the user to hide/show the group of annotations.
Describe alternatives you've considered
n/a
Additional context
The requests comes from #522
Kibana Cross Issues
Checklist
Kibana Cross Issueslistkibana cross issuetag is associated to the issue if any kibana cross issue is present