{"action":"opened","issue":{"url":"https://api.github.com/repos/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/422","repository_url":"https://api.github.com/repos/angularjs-nvd3-directives/angularjs-nvd3-directives","labels_url":"https://api.github.com/repos/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/422/comments","events_url":"https://api.github.com/repos/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/422/events","html_url":"https://github.com/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/422","id":196650581,"number":422,"title":"Cannot read property 'disabled' of undefined","user":{"login":"fbartolom","id":2322827,"avatar_url":"https://avatars.githubusercontent.com/u/2322827?v=3","gravatar_id":"","url":"https://api.github.com/users/fbartolom","html_url":"https://github.com/fbartolom","followers_url":"https://api.github.com/users/fbartolom/followers","following_url":"https://api.github.com/users/fbartolom/following{/other_user}","gists_url":"https://api.github.com/users/fbartolom/gists{/gist_id}","starred_url":"https://api.github.com/users/fbartolom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbartolom/subscriptions","organizations_url":"https://api.github.com/users/fbartolom/orgs","repos_url":"https://api.github.com/users/fbartolom/repos","events_url":"https://api.github.com/users/fbartolom/events{/privacy}","received_events_url":"https://api.github.com/users/fbartolom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-20T11:33:51Z","updated_at":"2016-12-20T11:33:51Z","closed_at":null,"body":"Very deep in the NVD3 execution I am getting:\r\n`Uncaught TypeError: Cannot read property 'disabled' of undefined\r\n    at http://materiali.c-s-m.it/phonegap/app/graphs/build/nv.d3.js:6799:57\r\n    at Array.map (native)\r\n    at http://materiali.c-s-m.it/phonegap/app/graphs/build/nv.d3.js:6799:30\r\n    at nv.utils.state._set (http://materiali.c-s-m.it/phonegap/app/graphs/build/nv.d3.js:1248:24)\r\n    at nv.utils.state.update (http://materiali.c-s-m.it/phonegap/app/graphs/build/nv.d3.js:1269:18)\r\n    at SVGSVGElement.<anonymous> (http://materiali.c-s-m.it/phonegap/app/graphs/build/nv.d3.js:6836:18)\r\n    at https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js:3:14119\r\n    at H (https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js:1:4227)\r\n    at Array.ka.each (https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js:3:14094)\r\n    at Array.chart (http://materiali.c-s-m.it/phonegap/app/graphs/build/nv.d3.js:6819:19)`\r\nEvidently that variable is defined up to that point, otherwise the error would have come out before and my checking of the submitted data gives a very definite data collection.\r\nThis is how I compose the collection:\r\n`function composePipe(key, pointValues, color){\r\n\t\twriteLog(\"composePipe=\"+pointValues);\r\n\t\tvar singlecollection=[];\r\n\t\tvar values=[];\r\n\t\tpointCount=0;\r\n\t\tpointValues.forEach(function(point){\r\n\t\t\tvalues.push({x: pointCount, y: point});\r\n\t\t\twriteLog(\"(\"+pointCount+\",\"+point+\")\");\r\n\t\t\tsinglecollection.push({\r\n\t\t\t\tarea: false,\r\n\t\t\t\tvalues: values,\r\n\t\t\t\tkey: key,\r\n\t\t\t\tcolor: color,\r\n\t\t\t\tstrokeWidth: 4\r\n\t\t\t});\r\n\t\t\tpointCount++;\r\n\t\t});\r\n\t\treturn singlecollection.values;\r\n\t}\r\n\t\r\n\tfunction pipeGraphs(response){\r\n\t\t//load();\r\n\t\twriteLog(\"entro\");\r\n\t\tvar actual_JSON = JSON.parse(response);\r\n\t\tvar collection=[];\r\n\t\tvar wallTicknessArray=[];\t\r\n\t\tvar outletDiameterArray=[];\r\n\t\tvar lengthArray=[];\r\n\t\tfor (i in actual_JSON){\r\n\t\t\tvar element=actual_JSON[i];\r\n\t\t\tvar measurement=element.measurement;\r\n\t\t\tvar wallTickness=measurement.wallThickness;\r\n\t\t\t//writeLog(\"tickness=\"+wallTickness);\r\n\t\t\tvar outletDiameter=measurement.outletDiameter;\r\n\t\t\t//writeLog(\"diameter=\"+outletDiameter);\r\n\t\t\tvar length=measurement.length;\r\n\t\t\t//writeLog(\"length=\"+length);\r\n\t\t\t/*var present=hiddenGraphNames.filter(function(e) { return e == key })\r\n\t\t\tif (present.length>0){\r\n\t\t\t\tsetHiddenColor(true, key);\r\n\t\t\t\tcontinue;\r\n\t\t\t}*/\r\n\t\t\twallTicknessArray.push(wallTickness);\r\n\t\t\toutletDiameterArray.push(outletDiameter);\r\n\t\t\tlengthArray.push(length);\r\n\t\t}\r\n\t\t//writeLog(\"wallTicknessArray=\"+wallTicknessArray);\r\n\t\tcollection.push(composePipe(\"Outlet Diameter\", wallTicknessArray, \"black\"));\r\n\t\tcollection.push(composePipe(\"Wall Tickness\", outletDiameterArray, \"red\"));\r\n\t\tcollection.push(composePipe(\"Length\", lengthArray, \"green\"));\r\n\t\twriteLog(\"collection=\"+collection);\r\n\t\treturn collection;\r\n\t}\r\nWhat is wrong and how may I get rid of the error?`"}}
{"actor":{"display_login":"fbartolom"}}