flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject Re: Custom renderer for bubble chart
Date Fri, 07 Nov 2014 19:33:06 GMT
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 <markzolotoy@gmail.com> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message