Subscribe to RSS Feed

Categories

Archives

Unnamed Chart Package 0.0.4

↓ skip to article

Tonight I added a Color class and setup Chart::Decoration::Marker to use it. I also added a color to the Decoration::Grid so that the Markers it generates can have a special color.

chart-0.0.4 - The examples have been updated, but little is different.

$chart->plot->()->grid()->color(new Chart::Color(200, 200, 200, 0));

This raises an interesting problem for me. Chart is beginning to be broken into more finite pieces and I find myself wanting objects that represent them. Java has spoiled me into having all kinds of little classes I could use here, such as Insets, Rectangle or Color. I think that the average Perl hacker sees no utility in creating a Rectangle class and putting it on CPAN, but some of us prefer not to have to reimplement these ideas over and over. I’m not sure if I have enough to offer by splitting some of these into separate packages. Time will tell.

Comments (One comment)

very nice

jack / April 19th, 2006, 12:29 pm / #

Post a comment