Example: add method

This example adds a chart object with column header and row header and creates a pie diagram chart.

  ChartObject chartObject = chartObjects.add("NewChartObject", 6000, 5000, 6000, 4000, true, true);
  Range trueRange = spreadsheet.getActiveSheet().range("A1:E15");
  chartObject.getChart().chartWizard(trueRange,Constant.SYMPHONY_CHART_PIEDIAGRAM, Constant.SYMPHONY_CHART_PLOTBY_COLUMNS,"New Chart True",false);

Related information

add method