Convert an amCharts 5 AmRoot into a MAIDR data object.
The function walks the root's container tree, collects every XY chart
(including am5stock StockPanels), and converts each one into a MAIDR
subplot. A single chart produces a 1x1 grid; multiple charts are arranged
in a grid mirroring their on-screen layout, rows ordered bottom-first so
that pressing Up moves to the visually upper panel.
Convert an amCharts 5 AmRoot into a MAIDR data object.
The function walks the root's container tree, collects every XY chart (including am5stock
StockPanels), and converts each one into a MAIDR subplot. A single chart produces a 1x1 grid; multiple charts are arranged in a grid mirroring their on-screen layout, rows ordered bottom-first so that pressing Up moves to the visually upper panel.