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