Merge pull request #10783 from dataease/pr@dev-v2@fix_chart_line_label_overlap_hide
fix(图表): 折线图开启标签重叠隐藏
This commit is contained in:
commit
078e2dcbd3
@ -123,6 +123,7 @@ export class Line extends G2PlotChartView<LineOptions, G2Line> {
|
||||
fields: [],
|
||||
...tmpOptions.label,
|
||||
offsetY: -8,
|
||||
layout: [{ type: 'hide-overlap' }, { type: 'limit-in-plot' }],
|
||||
formatter: (data: Datum) => {
|
||||
if (!labelAttr.seriesLabelFormatter?.length) {
|
||||
return data.value
|
||||
|
||||
Loading…
Reference in New Issue
Block a user