When comparing Paths.js vs PERGOLA, the Slant community recommends Paths.js for most people. In the question“What are the best JavaScript drawing libraries?” Paths.js is ranked 21st while PERGOLA is ranked 25th. The most important reason people chose Paths.js is:
Can be used together with a template engine such as Mustache or Handlebars to display SVG graphics or instead of a static template engine, you can use a data binding or MVC/MV* library, such as Ractive.js, Angular, Mithril or Facebook React.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Just helps building graphs, complements template engines or data-binding libraries
Can be used together with a template engine such as Mustache or Handlebars to display SVG graphics or instead of a static template engine, you can use a data binding or MVC/MV* library, such as Ractive.js, Angular, Mithril or Facebook React.
Pro 3 APIs for the price of one
3 APIs of increasing abstraction:
- Low-level (svg paths)
- Basic shapes (Polygon, Rectangle, Bezier, Sector, Connector etc..)
- Basic graphs (Pie, bar, stock, radar, tree, waterfall, sankey etc...)
There is no magic, you can have as much control as you want on how you define your graphs, source code very readable.
Pro Lightweight
18kb minified.
Pro HTML
Pergola runs seamlessly in an HTML environment (option in configuration file). All the examples are provided both as SVG standalone and embedded in HTML, and are strictly equal.
Besides its universal Node Helper (http://www.svgmagazine.com/jul2011/dom-helper.html) Pergola also provides the equivalent for building HTML nodes and <foreignObject> HTML nodes.
Pro SVG native
The first and most accomplished SVG native library, 100% cross-platform compatible.
Cons
Con Commercial license
PERGOLA does not offer a free version. The price for a single developer to use PERGOLA is 400 €.