asheryani commented on issue #18242:
URL: https://github.com/apache/echarts/issues/18242#issuecomment-6943895658
Still reproduces on echarts.apache.org today (2026-11-17, Chromium 151,
ECharts 5.7.6): when two pie-series data items share the same `name`, ECharts
deduplicates the legend silently — the third slice has no legend entry and is
drawn in the same colour as the first.
Steps:
1. Open the ECharts online editor with this option:
```js
option = {
legend: {},
series: [{ type: 'pie', data: [
{ value: 120, name: 'Team Alpha' },
{ value: 200, name: 'Team Beta' },
{ value: 90, name: 'Team Alpha' } // ← duplicate name
]}]
};
```
2. Click **Run** — the chart draws three slices but the legend shows only
*Team Alpha* and *Team Beta*. The 90-unit slice has no legend entry and shares
the same blue as the 120-unit slice.
3. Rename the second `Team Alpha` to `Team Gamma` and run again — the legend
now shows all three entries correctly.
Recording with frame-by-frame evidence: https://scenerecap.com/s/38bmngsz5n
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]