I created a column chart and added an annotation element to it:
I added a creation complete method to draw on the canvas. The following function is called on creationComplete.
protected function drawSteps():void
trace("chartCanvas.width is: " + chartCanvas.width);
chartCanvas.graphics.lineStyle(1, 0x000000, 0.5);
This works fine when the chart first loads but if I update the chart series the line goes away. I have added a call to the 'drawSteps()' function in my method that updates the chart series as well but it didn't work. I don't understand why changing the chart series would cause this to stop displaying though, especially considering I call it again when the series is changed. Can anyone help?
Other things may be drawn into the graphics object, and those things might clear what is there first. It might be better to draw by overriding updateDisplayList()