I'm trying to draw annotations on a chart with CartesianDataCanvas, but none of 
the annotations are being drawn. I've tried drawing a line with .lineTo, and 
also using .addChild to add a Flex component. The chart is rendered fine, but 
none of the annotations show up on the chart. My code is 100% Actionscript. 
What am I doing wrong? 

Simplified code below:

        public class FancyChart extends Canvas
        {
                public var chart:AreaChart;
                public var annotation:CartesianDataCanvas;
                
                override protected function createChildren():void
                {
                        super.createChildren();
                        
                        chart = new AreaChart();
                        
                        annotation = new CartesianDataCanvas();
                        var test:Label = new Label();
                        test.text = "Test";
                        annotation.addChild(test);
                        chart.annotationElements.push(annotation);
                        addChild(chart);
                }
        }

Reply via email to