Subscribe to RSS Feed

Categories

Archives

Unnamed Chart Module 0.20

↓ skip to article

Cairo.

GD was giving me some trouble and the frustrations got my eyes wandering. As I pondered graphic libraries I recalled Gnome’s noise concerning Cairo, so I went to check it out. I was impressed with it’s capabilities. I was pleasantly suprised to find Cairo.pm on CPAN, so here we are.

All the Renderers (Area, Bar, Line and Point) have all been switched, and my Color and Stroke objects now work directly with the color and stroke concepts in Cairo. I also removed the silly way I was rendering markers and created a Marker renderer (since the markers’ locations are determined in precisely the same way as any other data on the plot).

chart-0.20

The examples have been updated. I left the old ones in place for comparison. Cairo’s version of my renderers are roughly the same LOC, but have a lot more funcionality. My focus for now is to add customization for the various rendererers. I need to expose the Stroke and Fill for many of them and add a few things like the shape of points in a Point chart or on a Line. I also need to create StackedArea and StackedBar renderers.

Comments (No comments)

There are no comments for this post so far.

Post a comment