Change series type

Refer to the following example code to see how to change chart type of a data series.