Merge pull request #13847 from dataease/pr@dev-v2@chart-quadrant-fix

fix(图表): 修复象限图拖入必要字段后显示空白的问题
This commit is contained in:
jianneng-fit2cloud
2024-12-04 21:58:23 +08:00
committed by GitHub

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
}