kryberg has asked for the wisdom of the Perl Monks concerning the following question:
I have $graph->set(skip_undef=>1); in my program. The GD::Graph documentation says under Options for graphs with lines that “If skip_undef has a true value, there will be a gap in the chart where a Y value is undefined.” I am not getting a gap. What happens is that it plots the last defined value, draws a vertical line down to 0 on the y-axis, continues graphing at zero, then at the next defined value draws a vertical line back up the to the appropriate y-value, and continues graphing the rest of the values.484200023020000 2003-09-30 22:00 11.2 10.2 .65 .00 484200023020000 2003-09-30 22:15 11.2 10.3 .65 .00 484200023020000 2003-09-30 22:30 11.1 10.3 .65 .00 484200023020000 2003-09-30 22:45 11.1 10.3 .64 .00 484200023020000 2003-09-30 23:00 11.1 10.2 .64 .00 484200023020000 2003-09-30 23:15 undef undef undef undef 484200023020000 2003-09-30 23:30 undef undef undef undef 484200023020000 2003-09-30 23:45 undef undef undef undef 484200023020000 2003-10-01 00:00 undef undef undef undef 484200023020000 2003-10-01 00:15 undef undef undef undef 484200023020000 2003-10-01 00:30 undef undef undef undef 484200023020000 2003-10-01 00:45 undef undef undef undef 484200023020000 2003-10-01 01:00 undef undef undef undef 484200023020000 2003-10-01 01:15 10.9 10.2 .62 .00 484200023020000 2003-10-01 01:30 10.9 10.3 .62 .10
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GD::Graph skip_undef not working properly
by flounder99 (Friar) on Oct 02, 2003 at 19:41 UTC | |
by kryberg (Pilgrim) on Oct 02, 2003 at 20:34 UTC |