Closed
Description
I noticed that Plotly.js construct legend item per trace rather than per color: https://github.com/plotly/plotly.js/blob/master/src/components/legend/get_legend_data.js#L43-L71. Thus if markers in a trace are colored differently, the legend could only show the color of the first item.
Here is an example:
I tried to make some changes to draw the legend items correctly. But the filtering functionality breaks. And I failed to find a way to fix the filter as the current implementation is based on the concept of "trace".
Metadata
Metadata
Assignees
Labels
No labels