Skip Menu |

This queue is for tickets about the GDGraph CPAN distribution.

Maintainer(s)' notes

There are plenty of good ideas of what people can do published here on the queue. Turning a patch from the tracker into a pull request is not one of them. In order to get maintainers' attention way more quickier, PR should have at least a sample included. We know it's hard to test images generating software, but it doesn't mean we can not test numbers produced by intermediate algorithms used to generate these images, so either a test or a sample.

Report information
The Basics
Id: 59547
Status: open
Priority: 0/
Queue: GDGraph

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.44
Fixed in: (no value)



Subject: Legend does not show more than # of datasets, even when cycle_clrs is on
The legend only displays as many colors as the number of datasets, even when you supply more arguments to set_legend(). When you set cycle_clrs to on, the number of colors used has nothing to do with the number of datasets -- rather, it is the number of colors in dclrs. But the legend still only displays as many colors as the number of datasets. In the example code below, we have 1 dataset with 6 data points, with cycle_clrs to on, with 3 colors in dclrs. You can see three colors in the graph. However, the legend only shows 1 color, even though we gave three arguments to set_legend(). I should be able to show a legend entry for each color shown. #!/usr/bin/perl use strict; use warnings; use GD::Graph::bars; my $my_graph = GD::Graph::bars->new; $my_graph->set( dclrs => [ qw(lred lgreen lblue) ], cycle_clrs => 1, # causes colors to change horizontally ) or warn $my_graph->error; $my_graph->set_legend( qw(A B C) ); $my_graph->plot( [[1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6]] ) or die $my_graph->error; my $ext = $my_graph->export_format; my $graph_filename = "test.$ext"; open OUT, ">$graph_filename" or die "Cannot open for write: $!"; binmode OUT; print OUT $my_graph->gd->$ext; close OUT;
Subject: test.gif
Download test.gif
image/gif 2.7k
test.gif
Subject: New GD::Graph co-maintainer and new release on CPAN
Hello, You recieved this message as you filed a bug report or feature request against GD::Graph module on CPAN. My name is Ruslan and I'm new co-maintainer of the module. I've updated the module to 1.45 with doc changes and released it to CPAN. See distribution status [1]. I have TODO list for several releases, so if your ticket was a patch then turning it into a nice pull request may expedite inclusion :) [1] http://search.cpan.org/~ruz/GDGraph-1.45/Graph.pm#DISTRIBUTION_STATUS -- Best regards, Ruslan.