Corrected call to data accessor

It was working fine when using the example (chartdemo.coffee) but was trying to use it somewhere else and found the issue of "data" being undefined value
Merge pull request #1 from mrinalvenky/master

Corrected call to data accessor