I'm trying to add a Label to the LegendItem objects in my chart's legend, without much success. I extended the LegendItem class, and the constructor of the class I made is below. The problem is that the Label you see me trying to add doesn't appear in the legend item. It's there (I can find it with getChildByName), but it's invisible, for some reason.
Is there some special way to add objects to a custom legend item? Thanks.
public function LegendItemExtended() {
super();
someText = new Label();
someText.name = "label";
someText.text = "hi";
addChild(someText);
}