tsj4
08-13-2008, 11:40 PM
I using the CircleItemRenderer as the tick mark of a line series to show where the data tips are. I have assigned a specific color to each line series but the CircleItemRenderer displays with a different color. The color it is using seems to be the default color that flex would have displayed the line series in if no color was specified
var u3:LineSeries = new LineSeries();
u3.name = measure3[mes_label];
u3.xField = initLabel;
u3.yField = measure3[mes_id];
u3.displayName = measure3[mes_label];
c.secondSeries.push(u3);
u3.dataProvider = traffic;
var s:Stroke = new Stroke();
s.color = Number(measure3[mes_color]);
s.weight = 3;
u3.setStyle("lineStroke", s);
u3.setStyle('itemRenderer', new ClassFactory(CircleItemRenderer));
Why doesn't it just inherit the color of the line series and what do I need to do so it does.
http://tsj4.com/graph1.png
var u3:LineSeries = new LineSeries();
u3.name = measure3[mes_label];
u3.xField = initLabel;
u3.yField = measure3[mes_id];
u3.displayName = measure3[mes_label];
c.secondSeries.push(u3);
u3.dataProvider = traffic;
var s:Stroke = new Stroke();
s.color = Number(measure3[mes_color]);
s.weight = 3;
u3.setStyle("lineStroke", s);
u3.setStyle('itemRenderer', new ClassFactory(CircleItemRenderer));
Why doesn't it just inherit the color of the line series and what do I need to do so it does.
http://tsj4.com/graph1.png