mirror of https://github.com/buster-so/buster.git
show trendlines for line
This commit is contained in:
parent
6f517bc796
commit
f7277b6f2c
|
@ -89,7 +89,8 @@ export const EditTrendline: React.FC<{
|
|||
...DEFAULT_TRENDLINE_CONFIG,
|
||||
id: uuidv4(),
|
||||
type,
|
||||
columnId: selectedAxis.y[0] || ''
|
||||
columnId: selectedAxis.y[0] || '',
|
||||
aggregateAllCategories: ((selectedAxis as ScatterAxis).category || []).length >= 1
|
||||
};
|
||||
|
||||
addNewTrendId(newTrendline.id);
|
||||
|
|
|
@ -493,7 +493,7 @@ const EtcSettings: React.FC<
|
|||
return barGroupType !== 'percentage-stack' && hasYAxisValues;
|
||||
}
|
||||
if (isLineChart) {
|
||||
return lineGroupType === 'percentage-stack' && hasYAxisValues;
|
||||
return lineGroupType !== 'percentage-stack' && hasYAxisValues;
|
||||
}
|
||||
return !isScatterChart && !isPieChart && hasYAxisValues;
|
||||
}, [isScatterChart, isPieChart, isLineChart, isBarChart, hasYAxisValues]);
|
||||
|
@ -503,7 +503,7 @@ const EtcSettings: React.FC<
|
|||
return barGroupType !== 'percentage-stack' && hasYAxisValues;
|
||||
}
|
||||
if (isLineChart) {
|
||||
return lineGroupType === 'percentage-stack' && hasYAxisValues;
|
||||
return lineGroupType !== 'percentage-stack' && hasYAxisValues;
|
||||
}
|
||||
return !isPieChart && hasYAxisValues;
|
||||
}, [isScatterChart, isPieChart, isLineChart, isBarChart, hasYAxisValues]);
|
||||
|
|
Loading…
Reference in New Issue