下面的代码是我的绘图图表在Angular 模板,我想添加 colored颜色 Select 器点击图表图例.如何获得图表图例的点击事件
<plotly-plot
[divId]="graph.selectedGraph.name"
[data]="graph.selectedGraph.data"
[config]="graph.selectedGraph.config"
[layout]="layout"
(relayout)="draggedShape($event)"
[ngClass]="{ 'single-data': graph.data && graph.data.length === 1 }"
#plotlyPlot
>
</plotly-plot>