Example: chartWizard method

This example creates a chart for range(A1:E15), and then displays the chart title.

    Range trueRange = spreadsheet.getActiveSheet().range("A1:E15");
    chartObjects = workSheet.getChartObjects();
    chartObject = chartObjects.item(1);
    chartObject.getChart().chartWizard(trueRange,Constant.SYMPHONY_CHART_PIEDIAGRAM, 
				Constant.SYMPHONY_CHART_PLOTBY_COLUMNS,
				"New Chart True",false);
    System.out.println(chartObject.getChart().getChartTitle().getText());

Related information

chartWizard method