import { Component, Input, OnChanges, ChangeDetectionStrategy, SimpleChanges } from '@angular/core'; @Component({ selector: 'g[ngx-charts-svg-radial-gradient]', template: ` `, changeDetection: ChangeDetectionStrategy.OnPush }) export class SvgRadialGradientComponent implements OnChanges { @Input() color; @Input() name; @Input() startOpacity; @Input() endOpacity = 1; @Input() cx: number = 0; @Input() cy: number = 0; r: string; ngOnChanges(changes: SimpleChanges): void { this.r = "30%"; } }