Home Forums Chart Support Uncaught type error: cannot read property of undefined Reply To: Uncaught type error: cannot read property of undefined

#25590

Samyukta,

In the JSFiddle that you have shared, the issue seems to be with the approach of looping through ‘Values’ object. Iterating through Values object properly seems to be working fine.

for (var key in Values) {
    if (Values.hasOwnProperty(key)) {
        console.log(key + " -> " + Values[key]);
    }
}

Please refer to this stackoverflow thread for more information on iterating through the properties of a JavaScript object.

If you are still facing issue, kindly brief us more about it so that we can understand it better and help you resolve.


Vishwas R
Team CanvasJS