projects/swimlane/ngx-charts/src/lib/common/grid-panel.component.ts
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
@Component({
selector: 'g[ngx-charts-grid-panel]',
template: `
<svg:rect [attr.height]="height" [attr.width]="width" [attr.x]="x" [attr.y]="y" stroke="none" class="gridpanel" />
`,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class GridPanelComponent {
@Input() width: number;
@Input() height: number;
@Input() x: number;
@Input() y: number;
}