I have the following code, which builds a pie chart using paths to fill
each segmant:-
 
this.PieElements = new Array() // array of pie wedges 

this.PieElements[this.PieElements.length] =
this.SVGDocument.createElementNS("http://www.w3.org/2000/svg";, "path")

          
          if(SegmentCount == 1){
                alert("Segment count="+ this.PieElements.length)
                this.PieElements[this.PieElements.length -
1].setAttributeNS(null,"fill","black")  //ADDED BY MJ
                this.PieElements[this.PieElements.length -
1].setAttributeNS(null,"stroke","red")  //ADDED BY MJ
                this.PieElements[this.PieElements.length -
1].setAttributeNS(null,"id","black")  //ADDED BY MJ
          }
          else{
                this.PieElements[this.PieElements.length -
1].setAttributeNS(null,"fill",Color)  //ADDED BY MJ
                this.PieElements[this.PieElements.length -
1].setAttributeNS(null,"stroke","black")  //ADDED BY MJ
                this.PieElements[this.PieElements.length -
1].setAttributeNS(null,"id","pie"+Color)  //ADDED BY MJ
          }

 
when SegmentCount = 1 the fill does NOT apply.????
 
If there is more than 1 segment then the color variable from an array of
colors selects a color and fills in the path correctly. 

Collaborate to Innovate! Register today for Telelogic's annual User Group 
Conference November 19-21 in South Wales
Learn more at www.telelogic.com/campaigns/2007/ugc/uk/index.cfm
--------------------------------------------------------------------------------
Telelogic Lifecycle Solutions:
Helping You Define, Design & Deliver Advanced Systems & Software 
Learn More at www.telelogic.com 

Mandeep Jootle 
Senior Web Developer 
Telelogic UK Ltd. 
Parkway 1
Broxell Close 
CV34 5QF, Warwick 
United Kingdom 

Phone: +44 (1926) 474 120 

Fax: +44 (1926) 474 101 

Mobile phone: 
[EMAIL PROTECTED]
http://www.telelogic.com 


Telelogic - Requirements-Driven Innovation!
------------------------------------------------------------- 



The information contained in this e-mail, including any attachment or 
enclosure, is intended only for the person or entity to which it is addressed 
and may contain confidential material. Any unauthorized use, review, 
retransmissions, dissemination, copying or other use of this information by 
persons or entities other than the intended recipient is prohibited.


[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to