Chart::Clicker 0.2.1
Wednesday, April 26, 2006 at 12:05AM 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
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.
Code,
General,
Languages,
Perl,
Useless Information 
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.
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.
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 } });