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: 33938
Status: open
Priority: 0/
Queue: GDGraph

People
Owner: Nobody in particular
Requestors: hanze101 [...] yahoo.ca
Cc:
AdminCc:

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



Subject: two axes line chart
Greetings, I encountered an issue while using the line chart with two axes. The problem is when the data set across a great range, especially when one set contains negative numbers, the chart cannot be drawn very nicely. One set will look okay, but most likely the other set will look like a straight line. The problem is it seems there is no way set a minimum value above 0 when one data set contains a negative number. The 0 will always be there and aligned between two axes. (see test_chart_1.png) Even manually setting the minimum value to above 0 does not work. Although this will result the chart looks a bit better, but the two data sets will be too apart. (see test_chart_2.png) #!/usr/bin/perl -w # Change above line to point to your perl binary use CGI ':standard'; use GD::Graph::lines; use strict; # Both the arrays should same number of entries. my @data = (['01', '02', '03', '04' ], [80, 90, 85, 75], [-6, -15, -25, 5]); my $mygraph = GD::Graph::lines->new(600, 300); $mygraph->set( #x_label => '', #y_label => '', title => 'Test Chart', # Draw datasets in 'solid', 'dashed' and 'dotted-dashed' lines line_types => [1, 2], # Set the thickness of line line_width => 2, # Set colors for datasets dclrs => ['blue', 'green'], two_axes => 1, #y1_min_value => 60, #y1_max_value => 100, #y2_min_value => -30, #y2_max_value => 10, ) or warn $mygraph->error; $mygraph->set_legend_font(GD::gdMediumBoldFont); $mygraph->set_legend('Data Set 1', 'Data Set 2'); my $myimage = $mygraph->plot(\@data) or die $mygraph->error; print "Content-type: image/png\n\n"; print $myimage->png; Thanks in advance for any help you can provide on the problem.
Subject: test_chart_2.png
Subject: test_chart_1.png
Download test_chart_1.png
image/png 2.6k
test_chart_1.png
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.