Closed maayanLayfer closed 1 year ago
The problem is with a layer, I am afraid we can not support different layers in scrollable containers. So the solution would be to put the markerRectangle to the back. This code will do the thing:
legend.markerRectangles.template.setup = (markerRectangle) =>{
root.events.once("frameended", ()=>{
markerRectangle.parent.children.moveValue(markerRectangle, 0);
})
}
@zeroin It didn't solve the issue :/ I don't think it's about layers, more like about attaching the svg to the rectangle or to the legend so it'll move relativity. I'll try to create a codePan for it.
Yes, a codepen would be nice, as it worked fine in my test case.
https://codepen.io/maayan-layfer/pen/OJaXERm Thanks @zeroin :)
I removed layer and added my code and it works as expected: https://codepen.io/team/amcharts/pen/NWErOOz/3f4c06d817b8401b07ef187ee7f1a511
This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.
Question
It seems like the svg is attached to the rectangle but not to the legend and I don't understand exactly how can I change it, will really appreciate any help.
Environment (if applicable)
I'm working with AMCharts5, React and TS
Additional context
Adding the code snippet and a video:
https://github.com/amcharts/amcharts5/assets/108460092/01d451d4-b094-42bd-9c16-a045c4fc0a84