linghaoSu commented on PR #18835:
URL: https://github.com/apache/echarts/pull/18835#issuecomment-1618081170

   > According to [this review 
comment](https://github.com/apache/echarts/pull/17281#issuecomment-1168862346), 
checking id before name is not correct. As for our case, are the elements of 
the same x value share the same name?
   
   Yes, I agree with that. We should not change the order in which the elements 
are fetched. For our case, elements with the same X value share the same name 
because they get the name from the original value of the category scale.
   
   For this example, the coordinate system consists of two category type 
scales, so can we make the logic of getting the names to get the original 
values of all the category type scales? e.g. name: `11a` -> `11a_Sunday`
   
   Not sure it's the right thing to do, but it's a change that gets the 
behavior right. [code](https://github.com/linghaoSu/echarts/pull/1/files)
   
   <img width="1798" alt="image" 
src="https://github.com/apache/echarts/assets/56526981/3ef771b1-c726-49c8-8ca7-fd1bdad2e776";>
   
   The current approach only works for the current scenario, and is still 
unavoidable for scenarios with duplicate data in a single category type scale
   
    <img width="1781" alt="image" 
src="https://github.com/apache/echarts/assets/56526981/c1cd5043-bee0-4fe4-a875-bae0d3552f39";>
   
   
[sample](https://echarts.apache.org/examples/zh/editor.html?c=bar-background&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdAtWAuiQC-fdORz4iqUmUo1ZAN0YANkq0Dk6weFRGVISwovzEnoLCYgCMAEwADDywmVmwKQCseQAceQDseSkplQDMlZk2YZ4U1HQARowcvPHoEQFU9CwCUgI-tHgQ0Kz93Z494VT9g-7z6BAsALYmFP0riYltnKMcAMLAAZx0HBqz-6SHHMeqEAJg2kQ1q7D2847zeNpgAB3ABCjHoAGtWBxgJYBEQwBwlE17uCoTC4dtyLsEnd6OdLrIOKwOgAKFKlbIUyqU2AZAB0aQAlCF9j9POzYHZ7ABuIA)
   
   


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