@pkhan,
Can I test it locally ?
You can test it locally by making an ajax request to your local file. Since you will be running the program directly from the file system, ajax request would get blocked due to browser security/ Cross-Origin requests. So please run the same via a local server like Apache, Nginx, IIS, etc and it should work fine.
can I use this as area chart ?
Yes. You can use the above provide code with any Chart types with axes.
__
Priyanka M S
Team CanvasJS