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

   @helgasoft I'm looking at this again after this feature got deprioritized 
behind some other things. Thanks for getting back to me.
   
   Prefixing the column seems like a complicated solution and would interfere 
with our column formatting logic (we take the column name and present it as a 
nicely formatted title in the chart).
   
   I tried another solution which almost worked, which I'll describe below:
   - I created a variable to count the number of series on the y axis vs. on 
the secondary y axis
   - I used `componentIndex` within `params` to see which axis each series 
should be on (e.g., if `componentIndex < ySeriesCount` then it's on the first 
axis, otherwise on the second)
   - This works in the basic case
   - This doesn't work in the case I mentioned above with US/UK/China and 
Sales/Orders. Here is how the `componentIndex` was set for those:
      -  "US - Sales ($)" `componentIndex: 0`
      - "US - Orders" `componentIndex: 1`
      - "UK - Sales ($)" `componentIndex: 2`
      - "UK - Orders" `componentIndex: 3`
      - "China - Sales ($)" `componentIndex: 4`
      - "China - Orders" `componentIndex: 5`
   - This gave me $ formatting on `0`, `1`, and `2` and # formatting on the 
other 3
   
   This would all be much easier if I knew `yAxisIndex` in `params`! 


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