mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(图表): 修复象限图拖入必要字段后显示空白的问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user