Merge pull request #6895 from ulleo/dev

feat: 组合图默认第一个指标为柱状图,第二个指标为折线图
This commit is contained in:
ulleo
2023-11-28 15:29:40 +08:00
committed by GitHub

View File

@@ -2546,7 +2546,7 @@ export default {
if (equalsAny(view.type, 'chart-mix', 'bidirectional-bar')) {
view.yaxisExt.forEach(function(ele) {
if (!ele.chartType) {
ele.chartType = 'bar'
ele.chartType = view.type === 'chart-mix' ? 'line' : 'bar'
}
if (ele.chartId) {
ele.summary = ''