diff --git a/core/core-frontend/src/utils/canvasStyle.ts b/core/core-frontend/src/utils/canvasStyle.ts index 0936cac276..f894001463 100644 --- a/core/core-frontend/src/utils/canvasStyle.ts +++ b/core/core-frontend/src/utils/canvasStyle.ts @@ -116,7 +116,14 @@ export function colorRgb(color, opacity) { } export const customAttrTrans = { - basicStyle: ['barWidth', 'lineWidth', 'lineSymbolSize', 'tableColumnWidth'], + basicStyle: [ + 'barWidth', + 'lineWidth', + 'lineSymbolSize', + 'leftLineWidth', + 'leftLineSymbolSize', + 'tableColumnWidth' + ], tableHeader: [ 'tableTitleFontSize', 'tableTitleColFontSize', diff --git a/core/core-frontend/src/utils/sizeAdaptor.ts b/core/core-frontend/src/utils/sizeAdaptor.ts index 6e854af6cd..af2fd10707 100644 --- a/core/core-frontend/src/utils/sizeAdaptor.ts +++ b/core/core-frontend/src/utils/sizeAdaptor.ts @@ -4,7 +4,9 @@ export const customAttrTrans = { size: [ 'barWidth', 'lineWidth', + 'leftLineWidth', 'lineSymbolSize', + 'leftLineSymbolSize', 'funnelWidth', // 漏斗图 最大宽度 'tableTitleFontSize', 'tableTitleColFontSize', diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts index da84fd6dcd..87f67e508c 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts @@ -320,6 +320,10 @@ export class ColumnLineMix extends G2PlotChartView { tempOption.geometryOptions[0].columnWidthRatio = columnWidthRatio } + if (super.name !== 'chart-mix-dual-line') { + tempOption.geometryOptions[0].appendPadding = getPadding(chart) + } + return tempOption }