Using the charting API to create a new chart
To create a chart instance object for use in a stand-alone application or a report design, use a static method of one of the chart implementation classes. Depending on which chart implementation object you use, you can either create a chart with or without axes. The following line of code creates a chart with axes:
ChartWithAxes newChart = ChartWithAxesImpl.create( );