{"action":"created","issue":{"url":"https://api.github.com/repos/epochjs/epoch/issues/156","labels_url":"https://api.github.com/repos/epochjs/epoch/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/epochjs/epoch/issues/156/comments","events_url":"https://api.github.com/repos/epochjs/epoch/issues/156/events","html_url":"https://github.com/epochjs/epoch/issues/156","id":58500171,"number":156,"title":"Variable range on realtime (line) plots","user":{"login":"Dav1dde","id":255721,"avatar_url":"https://avatars.githubusercontent.com/u/255721?v=3","gravatar_id":"","url":"https://api.github.com/users/Dav1dde","html_url":"https://github.com/Dav1dde","followers_url":"https://api.github.com/users/Dav1dde/followers","following_url":"https://api.github.com/users/Dav1dde/following{/other_user}","gists_url":"https://api.github.com/users/Dav1dde/gists{/gist_id}","starred_url":"https://api.github.com/users/Dav1dde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dav1dde/subscriptions","organizations_url":"https://api.github.com/users/Dav1dde/orgs","repos_url":"https://api.github.com/users/Dav1dde/repos","events_url":"https://api.github.com/users/Dav1dde/events{/privacy}","received_events_url":"https://api.github.com/users/Dav1dde/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/epochjs/epoch/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-22T11:53:43Z","updated_at":"2015-10-17T20:34:12Z","closed_at":"2015-10-17T20:34:12Z","body":"E.g. I have this graph representing memory useage of a process:\r\n![screenshot from 2015-02-22 12 42 05](https://cloud.githubusercontent.com/assets/255721/6318408/821c021a-ba90-11e4-9ffd-6ebdc367b982.png)\r\n\r\nNow I can't set a fixed range from 0 to let's say 1GiB, because memory useage depends heavily on the circumstances, or in this example the memory useage doesn't change for the duration of the plot, as you can see, that really messes with Epoch, also triggering an exception (line 8, `Uncaught TypeError: Cannot read property 'x' of undefined`): \r\n\r\n```js\r\n    Plot.prototype._updateTicks = function(newTime) {\r\n      if (!(this.hasAxis('top') || this.hasAxis('bottom'))) {\r\n        return;\r\n      }\r\n      if (!((++this._tickTimer) % this.options.ticks.time)) {\r\n        this._pushTick(this.options.windowSize, newTime, true);\r\n      }\r\n      if (!(this._ticks[0].x - (this.w() / this.pixelRatio) >= 0)) {\r\n        return this._ticks[0].exit = true;\r\n      }\r\n    };\r\n```\r\n\r\nI am not sure how to properly fix this, maybe replace the `range` option with an extent function (as called from the code)? Or an extent option which takes precedence over the range option.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/epochjs/epoch/issues/comments/148949538","html_url":"https://github.com/epochjs/epoch/issues/156#issuecomment-148949538","issue_url":"https://api.github.com/repos/epochjs/epoch/issues/156","id":148949538,"user":{"login":"rsandor","id":146592,"avatar_url":"https://avatars.githubusercontent.com/u/146592?v=3","gravatar_id":"","url":"https://api.github.com/users/rsandor","html_url":"https://github.com/rsandor","followers_url":"https://api.github.com/users/rsandor/followers","following_url":"https://api.github.com/users/rsandor/following{/other_user}","gists_url":"https://api.github.com/users/rsandor/gists{/gist_id}","starred_url":"https://api.github.com/users/rsandor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsandor/subscriptions","organizations_url":"https://api.github.com/users/rsandor/orgs","repos_url":"https://api.github.com/users/rsandor/repos","events_url":"https://api.github.com/users/rsandor/events{/privacy}","received_events_url":"https://api.github.com/users/rsandor/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T20:34:12Z","updated_at":"2015-10-17T20:34:12Z","body":"@Dav1dde, @cbdonohue - Looking over this again I see that this ticket is actually reporting two problems that have been reported by others and are now fixed as of the latest version of epoch. \r\n\r\nThe first problem, an error being thrown with `cannot property 'x' of undefined` was fixed with #203. The second, variable extent-based axes for real-time charts, was fixed with the introduction of multi-axes in #198.\r\n\r\nSeeing as the issues are now resolved, I am going to close this ticket. Feel free to ask questions here or continue the conversation.\r\n"}}