I´ve had the same problems with Line Series, they just wont behave as one would expect from using other kinds of Series.
I´ve managed to do this either in MXML or in AS. In the latter approach I had to set the lineStroke style to a Stroke instance... public static function produceLineSeries(dataObject: Object, numSeries : Number) : LineSeries { var stroke : Stroke = new Stroke(colors[numSeries],3); var series : LineSeries = new LineSeries; series.setStyle("form","curve"); series.setStyle("lineStroke", stroke); series.xField = dataObject.keyFieldName; series.yField = dataObject.valueFieldName; return series; } Couldn't manage to do that via CSS since I can't defiene objects in CSS, just properties. Hope it helps... Guido. On 11/7/07, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > How do you change the colors given to the line for each series in a > LineChart > using a CSS file ? > > The below snippit illustrates what I've tried: > > LineChart{ > chartSeriesStyles: AreaSeriesStyle1,AreaSeriesStyle2; > } > .AreaSeriesStyle1{ > areaFill:#AF003D;/* fill color for ColumnChart */ > fill:#AF003D; /*fill color for area chart*/ > stroke-color:#AF003D; /* ? fill for line chart line */ > color:#AF003D; > } > .AreaSeriesStyle2{ > areaFill:#AF030D;/* fill color for ColumnChart */ > fill:#AF030D; /*fill color for area chart*/ > stroke-color:#AF030D; /* ? fill for line chart line */ > color:#AF030D; > } > -- > Tom Chiverton > Helping to administratively initiate end-to-end technologies > on: http://thefalken.livejournal.com > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England > and Wales under registered number OC307980 whose registered office address > is at St James's Court Brown Street Manchester M2 2JF. A list of members is > available for inspection at the registered office. Any reference to a > partner in relation to Halliwells LLP means a member of Halliwells LLP. > Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee you > must not read it and must not use any information contained in nor copy it > nor inform any person other than Halliwells LLP or the addressee of its > existence or contents. If you have received this email in error please > delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > >