Browse Source
Merge pull request #9402 from rusikv/bug/chart-widgets-transparency
Fix chart widgets color transparency not working in hex and hsla formats
pull/9318/head
Igor Kulikov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/flot-widget.ts
|
|
|
@ -415,7 +415,6 @@ export class TbFlot { |
|
|
|
|
|
|
|
for (let i = 0; i < this.subscription.data.length; i++) { |
|
|
|
const series = this.subscription.data[i] as TbFlotSeries; |
|
|
|
colors.push(series.dataKey.color); |
|
|
|
const keySettings = series.dataKey.settings; |
|
|
|
series.dataKey.tooltipValueFormatFunction = tooltipValueFormatFunction; |
|
|
|
if (keySettings.tooltipValueFormatter && keySettings.tooltipValueFormatter.length) { |
|
|
|
@ -466,8 +465,8 @@ export class TbFlot { |
|
|
|
apply: true |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
const lineColor = tinycolor(series.dataKey.color); |
|
|
|
colors.push(lineColor.toRgbString()); |
|
|
|
lineColor.setAlpha(.75); |
|
|
|
|
|
|
|
series.highlightColor = lineColor.toRgbString(); |
|
|
|
|