Chart with custom name

Refer to the following example code to see how to create a chart with custom name.