diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts index f81f1b34ef..cb15ae690f 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts @@ -217,8 +217,11 @@ export class Quadrant extends G2PlotChartView { newChart.on('point:click', action) newChart.on('click', () => quadrantDefaultBaseline(defaultBaselineQuadrant)) newChart.on('afterrender', () => quadrantDefaultBaseline(defaultBaselineQuadrant)) - configYaxisTitleLengthLimit(chart, newChart) - configAxisLabelLengthLimit(chart, newChart, 'axis-title') + const yAxis = parseJson(chart.customStyle).yAxis + if (yAxis?.name) { + configYaxisTitleLengthLimit(chart, newChart) + configAxisLabelLengthLimit(chart, newChart, 'axis-title') + } configPlotTooltipEvent(chart, newChart) return newChart }