Angular 如何在@swimlane/ngx图表中添加双击事件

Angular 如何在@swimlane/ngx图表中添加双击事件,angular,Angular,我正在angular 7应用程序中使用@swimlane/ngx图表,我想在条形图/竖曲线图/饼图上添加双击事件 但我无法使用addEventListener添加。。。。还有 请让我知道如何添加双击事件,以及如何获得作为事件对象的点击栏信息。 请查找下面的代码 @ViewChild("mainSection") mainSectionChart: BarVerticalNormalizedComponent; <ngx-charts-bar-vertic

我正在angular 7应用程序中使用@swimlane/ngx图表,我想在条形图/竖曲线图/饼图上添加双击事件

但我无法使用addEventListener添加。。。。还有

请让我知道如何添加双击事件,以及如何获得作为事件对象的点击栏信息。 请查找下面的代码

@ViewChild("mainSection") mainSectionChart: BarVerticalNormalizedComponent;

       <ngx-charts-bar-vertical-normalized #mainSection id="mainSection" [view]="view" [scheme]="colorScheme" [results]="multi" [gradient]="gradient"
          [xAxis]="showXAxis" [yAxis]="showYAxis" [legend]="showLegend" [showXAxisLabel]="showXAxisLabel"
          [showYAxisLabel]="showYAxisLabel" [xAxisLabel]="xAxisLabel" [yAxisLabel]="yAxisLabel"
          (select)="onSelect($event, '2')" [barPadding]="8">
        </ngx-charts-bar-vertical-normalized>
@ViewChild(“mainSection”)mainSectionChart:BarVerticalNormalizedComponent;