This function is used to change the chart type.
Syntax:
SetChartType(ControlName,ChartType,ColumnShape)
where ControlName is name of the chart control,
Chart type – To which shapes the chart should change,
ColumnShape – Applicable only for column chart.
Example:
SetChartType(Chart16,Pie) will give a pie chart.