Hi Kobe,
Greetings from Syncfusion.
Your requirement can be achieved using accumulation chart loaded. We suggest you customize the legend items color after chart is rendered. We have attached modified sample for your reference.
| public loaded(args: ILoadedEventArgs): void {
var legendGroup = document.getElementById("chart-container")
.querySelectorAll('[id*="chart-container_chart_legend_shape_marker_"]');
// to change legend item shape color
if (legendGroup != null) {
for (let i = 0; i < legendGroup.length; i++)
legendGroup[i].setAttribute(
"fill",
legendGroup[i].getAttribute("stroke")
);
} }
|
Please revert us if you have any concerns.
Regards,
Durga G