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') { if (chartType == 'line' || chartType == 'bar') {
const color = dataColumnColors[dataColumn]; const color = dataColumnColors[dataColumn];
if (color) { if (color) {
backgroundColor = theme.main_palettes[color][4]; backgroundColor = theme.main_palettes[color][4] + '80';
borderColor = theme.main_palettes[color][7]; borderColor = theme.main_palettes[color][7];
} else { } else {
backgroundColor = colors[columnIndex]; backgroundColor = colors[columnIndex] + '80';
borderColor = saturateByTenth(backgroundColor); borderColor = colors[columnIndex];
} }
} else { } else {
backgroundColor = colors; backgroundColor = colors;