Search
Tweets
Recent Changes
« Poking Fun At RoR | Main | MacZot Is Giving Away SubEthaEdit. »
Wednesday
Apr262006

Chart::Clicker 0.2.1

Chart::Clicker. That's the name I've picked. It means absolutely nothing. I think it sounds good.


I decided after a lot of thinking that there was no clever way to convey all the things I wanted the name to convey. I knew I didn't want 'Cairo' in the name. No disrespect to Cairo, of course, but I might want to switch backends sometime.


Besides a new namespace, 0.2.1 brings a few new features:



  • new ColorAllocator for keeping track of colors

  • all Renderers use the new ColorAllocator, dropping their hardcoded colors

  • created the Drawing namespace for some the odds and ends such as Stroke, Point, Border and Insets

  • Bar renderer now divvies up the available space so that each series' bar can render next to the others that represent the same X value


chart-0.2.1


The example charts have been updated, as is customary with releases.


There are some things that I need to iron out in the middle, like how to tell Bar and Area to fill with different alpha values (or different colors!) and how to specify a shape for Point's points. This will come to me eventually.


Before a real release I need to iron out the Legend, titles, Axes drawing, labels and test Markers.

Reader Comments (3)

It looks like the funny-mountains graph output wants some opacity but only if the graph in the back layer ever goes below the graph in the front layer.

April 26, 2006 | Unregistered Commenternothingmuch

It looks like the funny-mountains graph output wants some opacity but only if the graph in the back layer ever goes below the graph in the front layer.

April 26, 2006 | Unregistered Commenternothingmuch

My previous examples had the opacity you speak of, but my new ColorAllocator simply gives me a single color for each Series on the chart. My current idea is to have the renderers that need opacity (area and the future stackedarea) have some type of opacity option that they will use to modify the color they are given. Something like:

my $renderer = new Chart::Clicker::Renderer::Area({ options => { opacity => .54 } });

April 26, 2006 | Unregistered Commentergphat

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>