|
|
@@ -169,8 +169,8 @@ function lineOption(data, lineConfig, themeConfig, styleConfig) {
|
|
|
yNameLocation, yNameGap, yNameRotate, stack, labelVisible, labelPosition, labelDistance, labelRotate,
|
|
|
lineSmooth, labelSymbolSize, dataZoomVisible } = styleConfig;
|
|
|
const { xAxis, yAxis, groupBy } = lineConfig;
|
|
|
- let xTitle = xAxis?`${xAxis.column.label}${xAxis.granularity.value?'('+xAxis.granularity.label+')':''}`:null
|
|
|
- let yTitle = yAxis?`${yAxis.column.label}${yAxis.gauge.value?'('+yAxis.gauge.label+')':''}`:null
|
|
|
+ let xTitle = xAxis?`${xAxis.column.label}`:null
|
|
|
+ let yTitle = yAxis?`${yAxis.column.label}`:null
|
|
|
let hasGroupBy = !!groupBy && !!groupBy.key;
|
|
|
let legendVisible = hasGroupBy;
|
|
|
data.serieses = data.serieses || [];
|
|
|
@@ -344,8 +344,8 @@ function pieOption(data, pieConfig, themeConfig, styleConfig) {
|
|
|
function scatterOption(data, scatterConfig, themeConfig, styleConfig) {
|
|
|
const { labelSymbol, xNameLocation, xNameGap, xNameRotate, yNameLocation, yNameGap, yNameRotate, labelSymbolSize, dataZoomVisible } = styleConfig;
|
|
|
const { xAxis, yAxis, groupBy } = scatterConfig;
|
|
|
- let xTitle = xAxis?`${xAxis.column.label}${xAxis.granularity.value?'('+xAxis.granularity.label+')':''}`:null
|
|
|
- let yTitle = yAxis?`${yAxis.column.label}${yAxis.gauge.value?'('+yAxis.gauge.label+')':''}`:null;
|
|
|
+ let xTitle = xAxis?`${xAxis.column.label}`:null
|
|
|
+ let yTitle = yAxis?`${yAxis.column.label}`:null;
|
|
|
let hasGroupBy = !!groupBy && !!groupBy.key;
|
|
|
let legendVisible = hasGroupBy;
|
|
|
|