I've made some progress. If I add this code:
chartPanel.addEventListener(FlexEvent.CREATION_COMPLETE, imgExport);
////////////////////////////////////////////////////////////////
// method: imgExport (Event)
////////////////////////////////////////////////////////////////
public function imgExport(e:Event):void {
var cp:ChartPanel = e.currentTarget as ChartPanel;
captureImg(cp, cp.title);
}
The axis gets drawn, but only on the INITAL rendering of the chart (obviously).
The addEventListener(FlexEvent.UPDATE_COMPLETE, imgExport) does not seem to
register
properly because the chartPanel doesn't ever get updated, just the data in the
chart element
whithin the panel. How do I get the update to register as an event as well?