@vizzly/dashboard 0.15.0-dev-532824b8277b56794208595a2825194b1d110465 → 0.15.0-dev-f90cb9fe016b8d74be9d3b023741ac8c219fd11b
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.
|
@@ -49530,7 +49530,7 @@ var formattedResultToSeries = function formattedResultToSeries(formattedResult,
|
|
|
49530
49530
|
};
|
|
49531
49531
|
|
|
49532
49532
|
var buildBubbleChartRepresentation = function buildBubbleChartRepresentation(_ref) {
|
|
49533
|
-
var _pivotConfig$x$, _xKeys$,
|
|
49533
|
+
var _pivotConfig$x$, _xKeys$, _axisTitles$x, _axisTitles$y;
|
|
49534
49534
|
var axisTitles = _ref.axisTitles,
|
|
49535
49535
|
colors = _ref.colors,
|
|
49536
49536
|
conditionalFormattingAttributes = _ref.conditionalFormattingAttributes,
|
|
@@ -49551,7 +49551,8 @@ var buildBubbleChartRepresentation = function buildBubbleChartRepresentation(_re
|
|
|
49551
49551
|
approxYAxisLabelCount = _ref.approxYAxisLabelCount,
|
|
49552
49552
|
_valueAlias = _ref.valueAlias,
|
|
49553
49553
|
zFieldId = _ref.zFieldId,
|
|
49554
|
-
quadrantsAttributes = _ref.quadrantsAttributes
|
|
49554
|
+
quadrantsAttributes = _ref.quadrantsAttributes,
|
|
49555
|
+
dimension = _ref.dimension;
|
|
49555
49556
|
var allPrefixes = {};
|
|
49556
49557
|
var allPostfixes = {};
|
|
49557
49558
|
var nullValues = {};
|
|
@@ -49701,9 +49702,11 @@ var buildBubbleChartRepresentation = function buildBubbleChartRepresentation(_re
|
|
|
49701
49702
|
|
|
49702
49703
|
// ----- Lines -----
|
|
49703
49704
|
|
|
49704
|
-
var
|
|
49705
|
-
|
|
49706
|
-
|
|
49705
|
+
var dim = dimension[0];
|
|
49706
|
+
var groupByKey = id({
|
|
49707
|
+
field: dim.field,
|
|
49708
|
+
"function": dim["function"]
|
|
49709
|
+
});
|
|
49707
49710
|
var styleDefinition = getStyleDefinition({
|
|
49708
49711
|
colors: colors,
|
|
49709
49712
|
yKeys: [].concat(yKeys, [xKey, zKey])
|
|
@@ -49851,7 +49854,8 @@ var BubbleChartV2View = function BubbleChartV2View(props) {
|
|
|
49851
49854
|
quadrantsAttributes: props.attributes.quadrants,
|
|
49852
49855
|
goalLineAttributes: (_props$attributes$goa = props.attributes.goalLines) != null ? _props$attributes$goa : [],
|
|
49853
49856
|
conditionalFormattingAttributes: props.attributes.conditionalFormattingRules,
|
|
49854
|
-
defaultFormats: props.defaultFormats
|
|
49857
|
+
defaultFormats: props.defaultFormats,
|
|
49858
|
+
dimension: props.attributes.dimension
|
|
49855
49859
|
});
|
|
49856
49860
|
}
|
|
49857
49861
|
|
|
@@ -50178,11 +50182,15 @@ var getConditionalFormatting$1 = function getConditionalFormatting(_ref) {
|
|
|
50178
50182
|
operator: firstFilter.op,
|
|
50179
50183
|
value: firstFilter.value,
|
|
50180
50184
|
color: rule.ruleValue,
|
|
50181
|
-
yKey: firstFilter["function"] ? firstFilter.field + "_" + firstFilter["function"] : firstFilter.field
|
|
50185
|
+
yKey: isValidFunctionName(firstFilter["function"]) ? firstFilter.field + "_" + firstFilter["function"] : firstFilter.field
|
|
50182
50186
|
});
|
|
50183
50187
|
});
|
|
50184
50188
|
return conditionalFormattingRules;
|
|
50185
50189
|
};
|
|
50190
|
+
function isValidFunctionName(functionName) {
|
|
50191
|
+
var invalidFunctionNames = [undefined, 'none'];
|
|
50192
|
+
return !invalidFunctionNames.includes(functionName);
|
|
50193
|
+
}
|
|
50186
50194
|
|
|
50187
50195
|
function buildFieldFormatMaps(result, pivotConfig, xAxisPrefix, xAxisPostfix, xAxisFormat, yAxisPrefix, yAxisPostfix, yAxisFormat, nullValue, numberFormatOptions) {
|
|
50188
50196
|
var allPrefixes = {};
|