You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/15 13:43:55 UTC

[GitHub] [echarts] IrfanNazand opened a new issue, #17223: [Bug] Series with same name only gets one legend

IrfanNazand opened a new issue, #17223:
URL: https://github.com/apache/echarts/issues/17223

   ### Version
   
   5.3.1
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/qutcwp?file=/index.js
   
   ### Steps to Reproduce
   
   1. Open an example with multiple series and legends
   2. Change the name of two series to something exactly similar
   3. Check the following example: https://codesandbox.io/s/qutcwp?file=/index.js
   
   ### Current Behavior
   
   If two series have the same name, but different data, the legend will only be displayed for one of the series.
   
   ### Expected Behavior
   
   The legend should show legends for the amount of series included in the chart. 
   If there are two series with similar names, it should still display two legends for those series.
   
   ### Environment
   
   _No response_
   
   ### Any additional comments?
   
   _No response_


-- 
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: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] IrfanNazand closed issue #17223: [Bug] Multiple series with same name only gets one legend

Posted by GitBox <gi...@apache.org>.
IrfanNazand closed issue #17223: [Bug] Multiple series with same name only gets one legend
URL: https://github.com/apache/echarts/issues/17223


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] jiawulin001 commented on issue #17223: [Bug] Multiple series with same name only gets one legend

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #17223:
URL: https://github.com/apache/echarts/issues/17223#issuecomment-1157428637

   Maybe consider preprocessing the data of 'name' before you feed it into Echarts?


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] IrfanNazand commented on issue #17223: [Bug] Multiple series with same name only gets one legend

Posted by GitBox <gi...@apache.org>.
IrfanNazand commented on issue #17223:
URL: https://github.com/apache/echarts/issues/17223#issuecomment-1157345434

   @jiawulin001 I would've done that, but for this case, the data and the names come from an API to which I don't have access. 


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] jiawulin001 commented on issue #17223: [Bug] Multiple series with same name only gets one legend

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #17223:
URL: https://github.com/apache/echarts/issues/17223#issuecomment-1157282290

   I would suggest you use different name to differentiate series. It's by design that Echarts uses series names to get legends, just like html script uses ID/name to get DOMs and every DOM's ID/name is one and only.


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org