ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Switch from SVG::Graph to a Javascript based library

Added by Gabriel Mazetto at 2011-12-27 07:30 pm

Here is my propose, migrate from SVG::Graph to Highcharts Javascript based graphing solution.
It can be used as GPL, as VisageApp (http://auxesis.github.com/visage/#about) already got GPL license for it.

The main advantages we will have using it instead of the actual one is that we can create zoomable graphs, which could help, for example, display correctly "Commits by Authors" (https://www.chiliproject.org/projects/chiliproject/repository/statistics).

Despite the fact of zoomable graphs, we could also benefits from animations and interactivity, to display context information "on mouse over" for example.

Also their graphs are more visual appealing than what we have today.

Another option is to work with g.Raphaël (https://github.com/DmitryBaranovskiy/g.raphael), it's based on Raphaël Javascript library. The project is actively being developed, and as it uses Raphaël, it just fit well with this feature request: https://www.chiliproject.org/issues/782 as it's based on Raphaël too.

And finally Flot, http://code.google.com/p/flot/ that have some of the functionality of Highcharts, but a bitty ugly.


Replies (4)

RE: Switch from SVG::Graph to a Javascript based library - Added by Eric Davis at 2011-12-28 01:54 am

I'd rather not include Highcharts since it's a commercial library. Our date picker library used to be open source but then it was turned into a commercial library so now we're stuck with an older and buggy version of it.

I'm fine with Raphael or g.Raphael if someone wants to prototype porting our existing charts/graphs over to it. I've used them both on projects before and was happy with the results.

Flot is fine too, though it wasn't as useful as Raphael when I used it.

(All of these actually generate SVG. It's just a change from the server generating the SVG in Ruby to the client generating the SVG in JavaScript).

Eric Davis

RE: Switch from SVG::Graph to a Javascript based library - Added by Felix Schäfer at 2012-01-09 10:57 am

Eric Davis wrote:

I'd rather not include Highcharts since it's a commercial library. Our date picker library used to be open source but then it was turned into a commercial library so now we're stuck with an older and buggy version of it.

I wouldn't like having commercial libs included either.

(All of these actually generate SVG. It's just a change from the server generating the SVG in Ruby to the client generating the SVG in JavaScript).

That might make a difference wrt. exports if there are exports of those parts.

RE: Switch from SVG::Graph to a Javascript based library - Added by Tom Rochette at 2012-02-15 05:00 am

Like Felix pointed out, switching to a JS based charting system would require the ability to export to pdf (which chiliproject currently has for gantt charts).

On the unrelated note of the date picker, since chiliproject switched to jQuery, wouldn't it be easy to switch to jQuery's UI DatePicker?

Edit: Just found #817 :)

RE: Switch from SVG::Graph to a Javascript based library - Added by Gabriel Mazetto at 2012-04-15 08:52 am

There is one more worth mentioning: http://www.jqplot.com/deploy/dist/examples/ It could be a good alternative to implement the "burn down" graphs

(1-4/4)