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

   ### What problem does this feature solve?
   
   To customize a chart, it's convenient to shadow/clone an existing series 
(e.g. `bar`) with a `custom` one, so you can draw on additional shapes (e.g. 
with `silent: true`) without having to reinvent the wheel.
   
   But, this new series is disconnected from the original, so it won't toggle 
on/off when the original series is toggled. Trying to use the same series ID 
doesn't work.
   
   It would be convenient to be able to define a shadow key/id for use with 
silent series, so that it would be considered a duplicate of the original.
   
   Or if there is an existing way to do so, to show this more clearly in the 
examples and docs. e.g. It's unclear to me how to replicate `bar` series as a 
`custom` one. I don't know how to respond to the dynamic state of the legend 
on/off toggle in `renderItem` and `api.barLayout`. It seems to be static and 
requires passing in e.g. the `count` and `barGap`, rather than re-using the 
same state from `bar`.
   
   ### What does the proposed API look like?
   
   A `series.shadowId` property that can have the `id` of another series.


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