Hi Eva,
By using BaseChart.addText to add custom text boxes, and use CDML to format the text, it should be possible to achieve what you need. A short example is like:
//add normal title
ChartDirector.TextBox t = c.addTitle("Annual Revenue for Star Tech", "Times New Roman Bold Italic", 18);
//add the left box below
int boxWidth = c.getWidth() / 2 - 4;
int margin = 10;
ChartDirector.TextBox b = c.addText(0, t.getHeight() + 4,
"<*block,width=" + (boxWidth - margin * 2) + ",halign=center*><*font=Arial Bold,size=14,color=FF0000*>Title 1<*/font*><*/*><*br*>Text 2<*br*>Text 3");
b.setSize(boxWidth, 0);
b.setBackground(Transparent, 0x888888);
b.setMargin2(margin, margin, margin, margin);
Hope this can help.
Regards
Peter Kwan |