in reply to Chart::Gnuplot png format

According to Chart::Gnuplot:

If the filename has no extension, postscipt will be used.

Examine your $chart->output('file.png'); line; it's not working.