PDA

View Full Version : areaChart + styles + AS


ljonny18
03-05-2008, 08:27 PM
hi I have a AreaChart and I am adding a number (x) amount of series depending on my dataProvider. e.g:

for each(....... in dataprovider)
{
var mySeries:series = new series ......
mySeries.name = ....
mySeries.title = ....
etc
}

can I add here in AS fill color / style proerties for my series???? e.g. areadFill etc..

thanks,
Jon.

flexy
03-06-2008, 02:10 PM
If you apply them using setStyle(). Alternatively, have the styling info in CSS and apply it using mySeries.styleName = "myStyle"

This would point to:
.myStyle { background-color: #CCCCCC; }

in your style sheet.