Browse Source

Merge pull request #4788 from ChantsovaEkaterina/bug/bar-chart-default-thresholds-line-width

UI: Bar Chart, fix applying default thresholds line width
pull/4851/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
603a1da24c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/flot-widget.ts

2
ui-ngx/src/app/modules/home/components/widget/lib/flot-widget.ts

@ -278,7 +278,7 @@ export class TbFlot {
}; };
} }
if (this.chartType === 'line' && isFinite(this.settings.thresholdsLineWidth)) { if ((this.chartType === 'line' || this.chartType === 'bar') && isFinite(this.settings.thresholdsLineWidth)) {
this.options.grid.markingsLineWidth = this.settings.thresholdsLineWidth; this.options.grid.markingsLineWidth = this.settings.thresholdsLineWidth;
} }

Loading…
Cancel
Save