Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'x' of undefined #223

Open
63degrees opened this issue May 10, 2016 · 3 comments
Open

Cannot read property 'x' of undefined #223

63degrees opened this issue May 10, 2016 · 3 comments

Comments

@63degrees
Copy link

angular.js:13550 TypeError: Cannot read property 'x' of undefined
at a.Epoch.Time.Plot.a._updateTicks (http://localhost:45454/Scripts/epoch.min.js:74:220)
at a.Epoch.Time.Plot.a._shift (http://localhost:45454/Scripts/epoch.min.js:72:149)
at a.Epoch.Time.Plot.a._startTransition (http://localhost:45454/Scripts/epoch.min.js:69:457)
at a.Epoch.Time.Plot.a.push (http://localhost:45454/Scripts/epoch.min.js:71:503)
at http://localhost:45454/Scripts/ng-epoch.js:80:31
at n.$digest (http://localhost:45454/Scripts/angular.min.js:142:306)
at n.$apply (http://localhost:45454/Scripts/angular.min.js:145:249)
at i. (http://localhost:45454/app/services.js:19:32)
at i.f.(anonymous function).(anonymous function) (http://localhost:45454/Scripts/jquery.signalR-2.2.0.min.js:8:33219)
at i.n.event.dispatch (http://localhost:45454/Scripts/jquery-2.2.3.min.js:3:7537)

@63degrees
Copy link
Author

This was trying to render an area chart. dataitem.value = 38.

chartEntry.push({ time: timestamp, y: dataItem.value });

$scope.areaAxes = ['left', 'right', 'bottom'];

@rsandor
Copy link
Collaborator

rsandor commented May 10, 2016

Can you show me how you define chartEntry?

@63degrees
Copy link
Author

var timestamp = ((new Date()).getTime() / 1000) | 0;
var chartEntry = [];
chartEntry.push({ time: 0, y: 0 });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants