in reply to GD::Graph line problem

"i can not work because its not numerical."

Hrm. Are you attaching your "data.txt" to the end of your program as __DATA.txt__? The reason I ask is that I don't think that works...

If not, then: Does your file literally contain "DATA\n\n___DATA.txt___\n?" If it does, that may be the problem. I can't be sure, without pulling the module off CPAN, but GD::Graph::Data probably doesnt' know how to handle malformated lines. UPDATE: I tried GD:G:D on a file with and without malformated lines and it didn't seem to complain. Perhaps you could elaborate on the problem?

Lastly, if you shortened your data file example to say 5 or 10 lines, I bet folks would really appreciate the lower wear and tear on their mouse wheels.

-Paul

Replies are listed 'Best First'.
Re^2: GD::Graph line problem
by ultibuzz (Monk) on Dec 18, 2006 at 14:09 UTC

    Hi, its an file named data.txt
    and i put this in readmore brakets, hmm maybe i make it wrong

    i want all informations from the file but only 10 x values on the axe, because reading 78 values in a 800*600 graph will not work.
    i want it more like y_tick_number, but this didn't work for x if x is not numerical.
    kd ultibuzz

      Oh, I see. I may have missed the question. I think you just want x_tick_number => 10.

      -Paul

        yes x_tick_number is usefull if you have numerical x values ;) 0 - 100 for example
        but i have dates so it dosn't work with tick number like described in the perldoc.
        the graph will generated corectly but with a x_tick_number of 10, i have instead of dates 0 to 45 there wich is not usable.
        kd ultibuzz