Charts - empty image files
Ben
benwei at veriwave.com
Tue Jun 8 01:34:18 UTC 2004
Solved.
It appears that there were two seperate problems here. For the old style charts, the problem really was my version of the Chart module, despite the fact that the non-date-based charts worked fine. For the new style, the problem was a lack of understanding on my part. I didn't realized that the method for collecting stats had changed.
Thanks for your help Bruce and Gerv.
Ben
On Mon, 7 Jun 2004 16:37:11 -0700
Ben <benwei at veriwave.com> wrote:
> Hmm, well I'm not sure what subversion of Chart I have, but it does appear to work for non date-based charts, and for the new type of charts if I don't specify a date range, so it seems that this is not the problem. I'm sure the data for the charts is there, I just ran collectstats with the --regenerate option and manually checked the files. They have data going back almost 2 years. When doing the new charts I tried viewing just the image and adding the debug parameter onto ther URL, and here is what I got:
>
> Bugzilla::Chart object:
> $VAR1 = bless( {
> '_data' => [
> [],
> []
> ],
> 'lines' => [
> [
> bless( {
> 'frequency' => '1',
> 'subcategory' => '-All-',
> 'creator' => '0',
> 'query' => 'bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED',
> 'public' => '1',
> 'name' => 'All Open',
> 'category' => '-All-',
> 'series_id' => '320'
> }, 'Bugzilla::Series' )
> ]
> ],
> 'datefrom' => '1041408000',
> 'cumulate' => 0,
> 'gt' => 0,
> 'labelgt' => undef,
> 'dateto' => '1072944000',
> 'labels' => [
> 'All Open'
> ]
> }, 'Bugzilla::Chart' );
>
> Content-Type: image/png
>
> I notice that the data part is empty, and I'm assuming this is the source of my trouble
> Ben
>
> On Tue, 8 Jun 2004 06:57:56 -0700 (PDT)
> "Bruce Armstrong \[TeamSybase\]" <bruce.armstrong at teamsybase.com> wrote:
>
> > It actually matters what subversion of 0.99. Support for GIF was dropped and support for JPEG and PNG added with 0.99c:
> >
> > http://cpan.uwinnipeg.ca/htdocs/Chart/README.html
> >
> > Meanwhile, GD dropped support for GIF around 1.19:
> >
> > http://cpan.uwinnipeg.ca/htdocs/GD/README.html
> >
> > I'd suggest trying it with a later version of Chart.
> >
> > However, are you able to do non-date based charts? Perhaps the issue is you don't have the collectstats script running daily and that no data is being collected on a time basis.
>
> -
> To view or change your list settings, click here:
> <http://bugzilla.org/cgi-bin/mj_wwwusr?user=benwei@veriwave.com>
More information about the developers
mailing list