mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 18:34:01 +00:00
fix
This commit is contained in:
@@ -63,7 +63,7 @@ function getOptions(timeAxis, chartType) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createChartData(freeData, labelColumn, dataColumns, colorSeed, chartType, dataColumnColors, theme) {
|
function createChartData(freeData, labelColumn, dataColumns, colorSeed, chartType, dataColumnColors, theme) {
|
||||||
if (!freeData || !labelColumn || !dataColumns || dataColumns.length == 0) return [{}, {}];
|
if (!freeData || !labelColumn || !dataColumns || !freeData.rows || dataColumns.length == 0) return [{}, {}];
|
||||||
const colors = randomcolor({
|
const colors = randomcolor({
|
||||||
count: _.max([freeData.rows.length, dataColumns.length, 1]),
|
count: _.max([freeData.rows.length, dataColumns.length, 1]),
|
||||||
seed: colorSeed,
|
seed: colorSeed,
|
||||||
|
|||||||
Reference in New Issue
Block a user