mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 09:56:00 +00:00
transparent charts
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user