Converts a rendered ECharts instance into a MAIDR figure.
Read from the chart's model rather than from its geometry:
getModel() resolves every default the author did not write, so the
values, the series names, the axis names and the stacking are all
available without measuring a pixel. The drawing is consulted only to
locate marks -- see selectors.ts for why that is the harder half.
Converts a rendered ECharts instance into a MAIDR figure.
Read from the chart's model rather than from its geometry:
getModel()resolves every default the author did not write, so the values, the series names, the axis names and the stacking are all available without measuring a pixel. The drawing is consulted only to locate marks -- seeselectors.tsfor why that is the harder half.