|
|
|
@ -98,7 +98,6 @@ export class ValueChartCardWidgetComponent implements OnInit, AfterViewInit, OnD |
|
|
|
|
|
|
|
backgroundStyle$: Observable<ComponentStyle>; |
|
|
|
overlayStyle: ComponentStyle = {}; |
|
|
|
overlayEnabled: boolean; |
|
|
|
padding: string; |
|
|
|
|
|
|
|
private lineChart: TbTimeSeriesChart; |
|
|
|
@ -148,8 +147,7 @@ export class ValueChartCardWidgetComponent implements OnInit, AfterViewInit, OnD |
|
|
|
|
|
|
|
this.backgroundStyle$ = backgroundStyle(this.settings.background, this.imagePipe, this.sanitizer); |
|
|
|
this.overlayStyle = overlayStyle(this.settings.background.overlay); |
|
|
|
this.overlayEnabled = this.settings.background.overlay.enabled; |
|
|
|
this.padding = this.overlayEnabled ? undefined : this.settings.padding; |
|
|
|
this.padding = this.settings.background.overlay.enabled ? undefined : this.settings.padding; |
|
|
|
|
|
|
|
if (this.ctx.defaultSubscription.firstDatasource?.dataKeys?.length) { |
|
|
|
this.lineChartDataKey = this.ctx.defaultSubscription.firstDatasource?.dataKeys[0]; |
|
|
|
|