MatthiasMert commented on issue #19908:
URL: https://github.com/apache/echarts/issues/19908#issuecomment-2100153805

   As the [documentation 
](https://echarts.apache.org/en/option.html#legend.data) states, `legend.data` 
is associated with series **names**. In echarts the approach to what you want 
to do would be to use one series for each bar. Also, you can use 
[showBackground](https://echarts.apache.org/en/option.html#series-bar.showBackground)
 instead of using a stacked bar.
   
   
[Example](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AG4CGANgK5W0A0J6eAFsADuRAGYs8VEgF9u6cjnxFUpMpRqxaAY0ZgqAc2AAnclx6x-Q0eMnoZJZvqrQAJkrPOdjIgG0k0RgC26rSAXl6Ahd6AFOqAaP60Msj-QXSAECqAMCqxnPGBwYDNSoCFSoB8toDGCbEAutKy5lSGEFSEsN5myiqq1HQARoyGps2wCcHh0d3NHYYA6hDOYHxEAIwArBUqIwDijCBEAByLpBaCAEKMmgDWeobArC5EYIbs2-gQugEAyhQObj3omsDMRnQAxAB2OYAThmAGENrQzLY7rAPGAvPUAMwANjmZRUdhUTRUFFaGhGQxUfWSaVhI3Gk2msHmsN2B2Op3OlzINyosIeVGer3UOOaXx-hn-KIADAARDZYMFQnpY5rwxHeOYijGkOXoPnoPHBQmwkkaPJFImkCkTKazBbQ8wCfaHE5nC6uVm3K2c7nkN7ED6wAW_DR_FEAFiwAIAonsZc11aQFT5garbCQylIANxAA)


-- 
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]

Reply via email to