What is the difference between Raphael and Mr. Raphael?

I'm sure I'm just fading, but what's the difference between Raphael and gRaphael ?

I can’t tell by reading their home pages (the gRaphael page just says “based on the Raphaël graphics library”), and Google doesn't help either.

+6
source share
3 answers

Raphaël is a vector graphics library used to manipulate vector graphic markup (SVG / VML) displayed on an HTML page. Using this, you can create and add SVG / VML elements to the DOM and further manage the elements inside it.

gRaphaël is a continuation of Raphael, adding graphics to the concept of Raphael Paper . Think * Schedule * aël. Thus, gRaphaël only works if Raphaël is loaded and uses it to draw actual graphs. gRaphaël can be used to create charts in SVG and currently supports chart types such as row, row, column, and dot.

If you do not want to make any of these types of diagrams, you should simply use Raphaël directly to draw what you are developing. In some cases, such as defining colors, stroke attributes, and overlaying some overlay elements on a chart, such as heading text, you need to learn a little Raphaël api to make good use of gRaphaël. You will find documentation for formerly better written and spilled more people than people. However, they both belong to the same author, probably gRaphaël was a demonstration of the base library, which, apparently, was aimed at simplifying the programmatic use of SVG.

If you are only interested in SVG charts and graphs, you may also be interested in Google Chart Tools .

+15
source

gRaphaël is a charting library that uses the Raphaël general drawing library.

+2
source

Graphael is for graphs only, Raphael is more general.

+1
source

Source: https://habr.com/ru/post/913525/


All Articles