transparent charts

This commit is contained in:
Jan Prochazka
2020-12-07 22:13:05 +01:00
parent fcb93015cc
commit b47c9f81d2

View File

@@ -27,11 +27,11 @@ function createChartData(freeData, labelColumn, dataColumns, colorSeed, chartTyp
if (chartType == 'line' || chartType == 'bar') {
const color = dataColumnColors[dataColumn];
if (color) {
backgroundColor = theme.main_palettes[color][4];
backgroundColor = theme.main_palettes[color][4] + '80';
borderColor = theme.main_palettes[color][7];
} else {
backgroundColor = colors[columnIndex];
borderColor = saturateByTenth(backgroundColor);
backgroundColor = colors[columnIndex] + '80';
borderColor = colors[columnIndex];
}
} else {
backgroundColor = colors;