(Note: The documentation above is from ChartDirector 6.0. Please use the version 5.0 sample code that comes with your ChartDirector for Perl 5.0.)
First, try the sample code to make sure it works in your machine. Then replace the random data in the sample code with your actual data. After verifying that it works, you can modify the style (the chart size, colors, chart title, etc) to fit you needs.