refactor(图表): 双轴图图例优化

This commit is contained in:
ulleo 2024-08-20 17:18:40 +08:00
parent 12f1875c5b
commit dfe830fc9a

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
}