使用 ng-dygraphs 时如何从底层 dygraphs 中获取 isZoomed?

How to get isZoomed from underlaying dygraphs when using ng-dygraphs?

Ng-dygraphs 是一个使用 Dygraphs 库的库,已准备好供 Angular 使用。 Dygraphs 有一个名为 isZoomed 的 属性。使用 NG-dygraphs 时如何访问此 属性?

试试这个:

@ViewChild('ngDygraphs') ngDygraphs : ElementRef;


<ng-dygraphs
  #ngDygraphs
  [data]="data"
  [options]="options">
</ng-dygraphs>

并为 ngDygraphs 制作 console.log(this.ngDygraphs) 并获取其属性。 会有isZoomed属性