forked from github/dataease
refactor(图表): 双轴图图例优化
This commit is contained in:
parent
12f1875c5b
commit
dfe830fc9a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user