|
|
@@ -71,8 +71,8 @@ function barOption(data, barConfig, themeConfig, styleConfig, drillDown) {
|
|
|
const { barMaxWidth, barMinHeight, barGap, stack, labelVisible, labelPosition, labelDistance,
|
|
|
labelRotate, xNameLocation, xNameGap, xNameRotate, xLabelHiddenCover, xLabelRotate, dataZoomVisible,
|
|
|
xLabelMargin, yNameLocation, yNameGap, yNameRotate, labelZeroVisible, xNameHidden, yNameHidden } = styleConfig;
|
|
|
- let xTitle = xAxis?`${xAxis.column.label}`:null
|
|
|
- let yTitle = yAxis?`${yAxis.column.label}`:null
|
|
|
+ let xTitle = xAxis ? `${xAxis.column.label}` : null
|
|
|
+ let yTitle = yAxis ? `${yAxis.column.label}${yAxis.gauge.value && yAxis.gauge.value !== 'sum' ? '(' + yAxis.gauge.label + ')' : ''}` : null
|
|
|
let xGranularityV = xAxis?`${xAxis.granularity.value}`:null
|
|
|
let hasGroupBy = !!groupBy && !!groupBy.key;
|
|
|
let legendVisible = hasGroupBy;
|
|
|
@@ -194,8 +194,8 @@ function lineOption(data, lineConfig, themeConfig, styleConfig, drillDown) {
|
|
|
yNameLocation, yNameGap, yNameRotate, stack, labelVisible, labelPosition, labelDistance, labelRotate,
|
|
|
lineSmooth, labelSymbolSize, dataZoomVisible, xNameHidden, yNameHidden } = styleConfig;
|
|
|
const { xAxis, yAxis, groupBy } = lineConfig;
|
|
|
- let xTitle = xAxis?`${xAxis.column.label}`:null
|
|
|
- let yTitle = yAxis?`${yAxis.column.label}`:null
|
|
|
+ let xTitle = xAxis ? `${xAxis.column.label}` : null
|
|
|
+ let yTitle = yAxis ? `${yAxis.column.label}${yAxis.gauge.value && yAxis.gauge.value !== 'sum' ? '(' + yAxis.gauge.label + ')' : ''}` : null
|
|
|
let hasGroupBy = !!groupBy && !!groupBy.key;
|
|
|
let legendVisible = hasGroupBy;
|
|
|
let xGranularityV = xAxis.granularity.value;
|
|
|
@@ -414,8 +414,8 @@ function scatterOption(data, scatterConfig, themeConfig, styleConfig) {
|
|
|
yNameRotate, labelSymbolSize, dataZoomVisible, xLabelRotate, xLabelMargin,
|
|
|
yLabelRotate, yLabelMargin, xNameHidden, yNameHidden } = styleConfig;
|
|
|
const { xAxis, yAxis, groupBy } = scatterConfig;
|
|
|
- let xTitle = xAxis?`${xAxis.column.label}`:null
|
|
|
- let yTitle = yAxis?`${yAxis.column.label}`:null;
|
|
|
+ let xTitle = xAxis ? `${xAxis.column.label}` : null
|
|
|
+ let yTitle = yAxis ? `${yAxis.column.label}${yAxis.gauge.value && yAxis.gauge.value !== 'sum' ? '(' + yAxis.gauge.label + ')' : ''}` : null
|
|
|
let hasGroupBy = !!groupBy && !!groupBy.key;
|
|
|
let legendVisible = hasGroupBy;
|
|
|
|