When we wrote the last message, we didn't know how to carry out the idea.
Now, we have done it.
To represent the Pie Chart we use lines (L command) instead of use
arcs (A command). This representation is accepted on PDAs.
An example:
<path id="sector0" d="M 0,0 L 100.0,0.0 L
99.98000066665777,1.999866669333308 L
99.9200106660978,3.998933418663416 L
99.82005399352042,5.996400647944459 L
99.68017063026194,7.991469396917269 L
99.50041652780257,9.983341664682817 L
99.28086358538663,11.971220728891938 L
99.02159962126372,13.95431146442365 L
98.7227283375627,15.931820661424597 L
98.38436927881214,17.902957342582418 L
98.00665778412416,19.86693307950612 L
97.58974493306054,21.82296230808693 L
97.13379748520296,23.770262642713455 L
96.63899781345133,25.708055189215504 L
96.1055438310771,27.63556485641137 L
95.53364891256061,29.552020666133956 L
94.92354180824408,31.456656061611778 L
94.27546655283462,33.348709214081445 L
93.58968236779349,35.227423327509 L
92.86646355765102,37.09204694129827 L
92.1060994002885,38.941834230865055 L
91.30889403123082,40.77604530595703 L
90.47516632199634,42.59394650659997 L
89.60524975255252,44.394810696551986 L
88.69949227792841,46.1779175541483 L
87.75825618903727,47.94255386042031 L
86.78191796776498,49.68801378437368 L
85.7708681363824,51.413599165311325 L
84.72551110134161,53.11861979208835 L
83.64626499151868,54.80239367918737 L
82.53356149096781,56.46424733950355 L
81.38784566625338,58.10351605373052 L
80.20957578842925,59.71954413623922 L
78.9992231497365,61.3116851973434 L
77.75727187509278,62.87930240184687 L
76.48421872844882,64.42176872376913 L
75.18057291408948,65.93846719714733 L
73.84685587295877,67.42879116281453 L
72.48360107409049,68.89214451105516 L
71.09135380122771,70.32794192004104 L
69.67067093471651,71.7356090899523 L
68.22212072876133,73.11458297268962 L
66.74628258413078,74.46431199708596 L
65.24374681640516,75.78425628952772 L
63.71511441985799,77.07388788989695 L
62.160996827066406,78.33269096274836 L
60.582015664346244,79.56016200363663 L
58.97880250310978,80.75581004051145 L
57.351998607245626,81.91915683009987 L
55.702254676621685,83.04973704919708 L
54.03023058681393,84.14709848078968 L
52.33659512516492,85.21080219493632 L
51.839051696878144,85.51440065374017 " />
Regards
ACL
--- In [email protected], "Garry Haywood" <[EMAIL PROTECTED]>
wrote:
>
> it would be good if you shared your solution with the list
>
> that way its in archive future use and some of us might learn
> something
>
> cheers
>
> Garry
>
> --- In [email protected], "acl_svg" <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > We have found another way to represent this type of graphics (with
> M
> > and L commands) and the Pie Chart can be visualized in a PDA without
> > mistakes.
> >
> > thank you very much for your help.
> >
> >
> > --- In [email protected], "Garry Haywood" <[EMAIL PROTECTED]>
> wrote:
> > >
> > > there was also a very good thread a few weeks ago which solved my
> > > problem with pie charts, but specifically helped me to understand
> the
> > > use of arcs and ellipses
> > >
> > > http://groups.yahoo.com/group/svg-developers/message/51838
> > >
> > > hope this helps
> > >
> > >
> > >
> > > --- In [email protected], "Doug Schepers"
> <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > Hi, acl-
> > > >
> > > > You can use another path command, like C or Q. You'll need to
> do
> > > some math
> > > > to calculate exactly how to make a proper arc segment, but this
> > > file should
> > > > help:
> > > > http://www.kevlindev.com/samples/tmp/circles.svg
> > > >
> > > > It is the result of a thread here a while back about the
> various
> > > ways to
> > > > draw a circle in SVG.
> > > >
> > > > Regards-
> > > > Doug
> > > >
> > > > [EMAIL PROTECTED]
> > > > www.vectoreal.com ...for scalable solutions.
> > > >
> > > >
> > > > acl_svg wrote:
> > > > |
> > > > | I want to visualize a Pie Chart in a PDA.
> > > > | For the time being, I couldn't find the way to see them
> correctly.
> > > > | I have tried several alternatives to represent Pie Chart
> > > > | using the <path> label, with the commands "A absolut" and "A
> > > > | relative", and I don't understand why I can't visualize it
> > > > | without mistakes.
> > > > |
> > > > | ------- Example 1 -------------
> > > > |
> > > > | <path d="M 350.0 150.0 A 100.0 100.0 0 0 0 301.83905169687813
> > > > | 64.48559934625983 L250.0,150.0 z"
> > > style="stroke:black;fill:#FFC800"/>
> > > > |
> > > > | <path d="M 301.83905169687813 64.48559934625983 A 100.0 100.0
> 0 0
> > > 0
> > > > | 215.4630724536883 56.15331313434227 L250.0,150.0 z"
> > > > | style="stroke:black;fill:#0000FF"/>
> > > > |
> > > > | <path id="sector2" d="M 215.4630724536883 56.15331313434227 A
> > > > | 100.0 100.0 0 0 0 159.9028399982932 106.61219342226616
> > > > | L250.0,150.0 z"
> > > > | style="stroke:black;fill:#FF0000"/>
> > > > |
> > > > | ...
> > > > | ------- Example 2 -------------
> > > > |
> > > > | <path d="M15,200 a150,150 0 1,0 300,0 z" fill="red"
> > > stroke="blue"
> > > > | stroke-width="1" />
> > > > | <path d="M60,90 a150,150 0 0,0 -50,100 l150,0 z"
> fill="yellow"
> > > > | stroke="blue" stroke-width="1" />
> > > > | <path d="M320,190 a150,150 0 0,0 -250,-100 l100,100 z"
> > > > | fill="green" stroke="blue" stroke-width="1" />
> > > > |
> > > > | ------- ------- -------------
> > > > |
> > > > | I have also tried to represent the graphics using Path cubic
> > > bezier
> > > > | command: Q, C... but I couldn't generate the same result as I
> > > > | get when I use the "A"
> > > > | command to create a Pie Chart to visualize it in a PC.
> > > > |
> > > > | I'd like to know if someone has tried to represent a similar
> > > > | graphic in a PDA. If there is any posibility to visualize it,
> > > > | I would like to know it.
> > > > | (a PieGraphic example: http://www.germane-
> > > > | software.com/software/SVG/SVG::Graph/images/pie.svg)
> > > > | Finally, I would like to discover other posibilities to
> > > > | represent Pie Chart without using "A" command in order to try
> > > > | if it's possible to get a suitable result in a PDA.
> > > > | Thanks.
> > > > |
> > > > |
> > > >
> > >
> >
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
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/
<*> 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/