hughess commented on issue #18622:
URL: https://github.com/apache/echarts/issues/18622#issuecomment-1745229668

   I may have found an approach that works - I've created a function that will 
take the `componentIndex` plus the count of variables on the first and second y 
axes, and will return which axis the datapoint should be on. This will work if 
the order of the series is always y first, then secondary y. In my example 
above, here's what it will return:
   - "US - Sales ($)" `componentIndex: 0` = `y`
   - "US - Orders" `componentIndex: 1` = `y2`
   - "UK - Sales ($)" `componentIndex: 2` = `y`
   - "UK - Orders" `componentIndex: 3` = `y2`
   - "China - Sales ($)" `componentIndex: 4` = `y`
   - "China - Orders" `componentIndex: 5` = `y2`


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