Chart Mode via scripting?

The Easy Chart has a built-in setMode function: Easy Chart Appendix Page

Additionally, this forum post has some useful examples.