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

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
}