I dont get any errors. But my custom text is not coming out. All I see is a default datatip with x, y, and r. Commenting out super.updateDisplayList() did not help.
On Fri, Nov 7, 2014 at 1:33 PM, OmPrakash Muppirala <[email protected]> wrote: > It will make it easier if you give more details as to what is happening, > any errors messages, screenshots, etc. > > From a quick look at your code, it looks like not calling > super.updateDisplayList() might be a problem. > > Thanks, > Om > > > On Fri, Nov 7, 2014 at 8:59 AM, mark goldin <[email protected]> wrote: > > > I am trying to create a custom renderer for my bubble chart. > > Here is code: > > package > > { > > import flash.display.GradientType; > > import flash.display.Graphics; > > import flash.events.MouseEvent; > > import flash.geom.Matrix; > > import mx.charts.HitData; > > import mx.charts.chartClasses.DataTip; > > import mx.charts.events.ChartItemEvent; > > import mx.containers.VBox; > > import mx.controls.Label; > > import mx.controls.Text; > > public class DataTipRenderer extends DataTip > > { > > private var _text:Text = new Text(); > > private var _vBox:VBox = new VBox(); > > public function DataTipRenderer() > > { > > super(); > > } > > override protected function updateDisplayList(w:Number, h:Number):void > > { > > this.setStyle("textAlign","center"); > > _vBox.addChild(_text); > > this.addChild(_vBox); > > _text.text = data.item.ProjectName; > > } > > } > > } > > > > Nothing is coming out. > > > > Thanks. > > >
