diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts index 600b280ebb..e66831ec31 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/line/line.ts @@ -123,6 +123,7 @@ export class Line extends G2PlotChartView { fields: [], ...tmpOptions.label, offsetY: -8, + layout: [{ type: 'hide-overlap' }, { type: 'limit-in-plot' }], formatter: (data: Datum) => { if (!labelAttr.seriesLabelFormatter?.length) { return data.value