fix(图表): 修复象限图拖入必要字段后显示空白的问题

This commit is contained in:
jianneng-fit2cloud
2024-12-04 21:56:42 +08:00
parent ad2a72d245
commit 68ab6a088e

View File

@@ -217,8 +217,11 @@ export class Quadrant extends G2PlotChartView<ScatterOptions, G2Scatter> {
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
}