Hi there

Just put an id to each linechart you have than

at the <mx:Script>

you could also do that.

public function mouseEvent(event):Void{
// add the event here
 }
LinecharId._visible = false;
or
lineCharId2._visible = true;

Just that

Adding a button with  a click event using the function for that.

On 8/27/06, shemeshkale <[EMAIL PROTECTED]> wrote:

hello, working with flex 1.5!
i have a simple line chart with 3 LineSeries.
how do i show hide an individual line??

i can manipulate the DataProvider with removeItemAt and addItemAt and
it works.. BUT!!..
in this way when my lines are visually formatted the formatting
disapear and the new line added looks like the default line - i dont
want that.
this is me LineSeries:
<mx:LineSeries yField="Profit" form="segment" name="Profit">
<mx:stroke>
<mx:Stroke weight="20" color="#ff0000" alpha="100" />
</mx:stroke>
</mx:LineSeries>

how do i show/hide a line and preserve its original design?




--
----------------------------
Igor Costa
www.igorcosta.com __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to