On Tue, 28 Dec 2010 18:51:38 +0530
"Pranav Lal" <pranav....@gmail.com> wrote:

> Hi all,
> 
> Apologies if this message is convoluted.
> 
> If I am dynamically generating graphs, is it better to use the
> polyline element or the path element to plot the graphs? I am getting
> pairs of x and y coordinates and need to plot them. The graphs could
> be line graphs, pie charts or bar graphs.
> 
> I realize that a polyline is a shortcut for multiple path operations.
> However, I want to capture the motion of the pen.

The big difference is that a polyline can only draw connected line
segments. Depending on your data, this can handle both line graphs and
bar graphs. If you need disconnected lines, you will need multiple
polyline elements.

A path, on the other hand, is much more general. A path can do
everything a polyline can do, plus several kinds of curve, plus
discontinuities in lines, and more.

If you have a simple set of points to generate a line graph, the
polyline is probably fine. If you are going to do much more, you should
invest the time to learn the path element.

G. Wade
-- 
If there's no solution, there's no problem.         -- Rick Hoselton


------------------------------------

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

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

Reply via email to