@vizzly/dashboard 0.15.0-dev-927f480c64f078c9b01edc81be29e4e33f862c8d → 0.15.0-dev-1aa6eade101748d98c680cc4504d68c26eddeb63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3207,35 +3207,59 @@ var validateView = (function (attrs, dataSets, queryEngineConfig) {
|
|
|
3207
3207
|
return [];
|
|
3208
3208
|
});
|
|
3209
3209
|
|
|
3210
|
-
var
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
}
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
}
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
}
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
}
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
}
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
|
|
3210
|
+
var CHART_TYPE_CONFIGS = {
|
|
3211
|
+
barChart: {
|
|
3212
|
+
displayName: 'Column Charts'
|
|
3213
|
+
},
|
|
3214
|
+
lineChart: {
|
|
3215
|
+
displayName: 'Line Charts'
|
|
3216
|
+
},
|
|
3217
|
+
lineChartV2: {
|
|
3218
|
+
displayName: 'Line Charts'
|
|
3219
|
+
},
|
|
3220
|
+
areaChart: {
|
|
3221
|
+
displayName: 'Area Charts'
|
|
3222
|
+
},
|
|
3223
|
+
horizontalBarChart: {
|
|
3224
|
+
displayName: 'Horizontal Bar Charts'
|
|
3225
|
+
},
|
|
3226
|
+
scatterChart: {
|
|
3227
|
+
displayName: 'Scatter Charts'
|
|
3228
|
+
},
|
|
3229
|
+
pieChart: {
|
|
3230
|
+
displayName: 'Pie Charts'
|
|
3231
|
+
},
|
|
3232
|
+
funnelChart: {
|
|
3233
|
+
displayName: 'Funnel Charts'
|
|
3234
|
+
},
|
|
3235
|
+
sunburstChart: {
|
|
3236
|
+
displayName: 'Sunburst Charts'
|
|
3237
|
+
},
|
|
3238
|
+
bubbleChart: {
|
|
3239
|
+
displayName: 'Bubble Charts'
|
|
3240
|
+
},
|
|
3241
|
+
bubbleChartV2: {
|
|
3242
|
+
displayName: 'Bubble Charts'
|
|
3243
|
+
},
|
|
3244
|
+
basicTable: {
|
|
3245
|
+
displayName: 'Tables'
|
|
3246
|
+
},
|
|
3247
|
+
comboChart: {
|
|
3248
|
+
displayName: 'Combo Charts',
|
|
3249
|
+
customMessage: 'Combo Charts needs at least 1 grouping (Bar and Line), or, have time set to display correctly.'
|
|
3250
|
+
},
|
|
3251
|
+
comboChartV2: {
|
|
3252
|
+
displayName: 'Combo Charts',
|
|
3253
|
+
customMessage: 'Combo Charts needs at least 1 grouping (Bar and Line), or, have time set to display correctly.'
|
|
3234
3254
|
}
|
|
3235
|
-
|
|
3236
|
-
|
|
3255
|
+
};
|
|
3256
|
+
var getGroupingFeedbackMessage = function getGroupingFeedbackMessage(attributes) {
|
|
3257
|
+
var config = CHART_TYPE_CONFIGS[attributes.type];
|
|
3258
|
+
if (config != null && config.customMessage) {
|
|
3259
|
+
return config.customMessage;
|
|
3237
3260
|
}
|
|
3238
|
-
|
|
3261
|
+
var displayName = (config == null ? void 0 : config.displayName) || 'Charts';
|
|
3262
|
+
return displayName + " need at least 1 grouping to display correctly.";
|
|
3239
3263
|
};
|
|
3240
3264
|
var chartHasDimensions = function chartHasDimensions(attributes) {
|
|
3241
3265
|
if (attributes.type === 'comboChart') {
|
|
@@ -3244,7 +3268,7 @@ var chartHasDimensions = function chartHasDimensions(attributes) {
|
|
|
3244
3268
|
if (hasBarAndLineDimensions) return true;
|
|
3245
3269
|
return false;
|
|
3246
3270
|
}
|
|
3247
|
-
if (attributes.type === 'barChart' || attributes.type === 'lineChart' || attributes.type === 'areaChart' || attributes.type === 'horizontalBarChart' || attributes.type === 'scatterChart' || attributes.type === 'pieChart' || attributes.type === 'funnelChart') {
|
|
3271
|
+
if (attributes.type === 'barChart' || attributes.type === 'lineChart' || attributes.type === 'areaChart' || attributes.type === 'horizontalBarChart' || attributes.type === 'scatterChart' || attributes.type === 'pieChart' || attributes.type === 'funnelChart' || attributes.type === 'sunburstChart') {
|
|
3248
3272
|
var _attributes$dimension;
|
|
3249
3273
|
if (attributes.timeDimension) return true;
|
|
3250
3274
|
if (!(attributes != null && attributes.dimension)) return true;
|