Merge pull request #11656 from ulleo/dev-v2

refactor(图表): 双轴图图例优化
This commit is contained in:
ulleo 2024-08-20 17:19:41 +08:00 committed by GitHub
commit 75838998de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -547,6 +547,14 @@ export class ColumnLineMix extends G2PlotChartView<DualAxesOptions, DualAxes> {
}
}
}
const size = Math.sqrt(o.legend.pageNavigator?.text?.style?.fontSize ?? 16)
o.legend.marker.style = style => {
const fill = style.fill ?? style.stroke
return {
r: size < 4 ? 4 : size,
fill
}
}
}
return o
}