{"action":"created","issue":{"url":"https://api.github.com/repos/PredixDev/px-vis-timeseries/issues/14","repository_url":"https://api.github.com/repos/PredixDev/px-vis-timeseries","labels_url":"https://api.github.com/repos/PredixDev/px-vis-timeseries/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/PredixDev/px-vis-timeseries/issues/14/comments","events_url":"https://api.github.com/repos/PredixDev/px-vis-timeseries/issues/14/events","html_url":"https://github.com/PredixDev/px-vis-timeseries/issues/14","id":177933725,"number":14,"title":"how to redraw chart on data change","user":{"login":"musti2","id":11604595,"avatar_url":"https://avatars.githubusercontent.com/u/11604595?v=3","gravatar_id":"","url":"https://api.github.com/users/musti2","html_url":"https://github.com/musti2","followers_url":"https://api.github.com/users/musti2/followers","following_url":"https://api.github.com/users/musti2/following{/other_user}","gists_url":"https://api.github.com/users/musti2/gists{/gist_id}","starred_url":"https://api.github.com/users/musti2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/musti2/subscriptions","organizations_url":"https://api.github.com/users/musti2/orgs","repos_url":"https://api.github.com/users/musti2/repos","events_url":"https://api.github.com/users/musti2/events{/privacy}","received_events_url":"https://api.github.com/users/musti2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-20T00:35:11Z","updated_at":"2016-12-05T16:12:41Z","closed_at":"2016-09-29T16:05:11Z","body":"Hi,\n\nI am using the component like so: \n`<px-vis-timeseries id=\"vischart\" title=\"{{nodeTitle}}\" enable-tooltip=\"true\" height=\"300\" width=\"600\" prevent-resize=\"false\" selection-type=\"x\" x-axis-config='{\"title\": \"Date\"}' chart-data=\"{{chartData}}\" include-all-series=true></px-vis-timeseries>`\n\nI then supply the data via iron-ajax and set it like so `this.chartData = data;`\n\nThe chart renders fine.\n\nHowever, if the array of `this.chartData` is changed to reflect a different equipment, the chart fails to render (redraw) the points with the following error:\n`Error: Invalid value for <rect> attribute x=\"NaN\"\nError: Invalid value for <rect> attribute width=\"NaN\"`\n\nis there a method i'm supposed to call when the data changes with new dates and new values? \n"},"comment":{"url":"https://api.github.com/repos/PredixDev/px-vis-timeseries/issues/comments/264896517","html_url":"https://github.com/PredixDev/px-vis-timeseries/issues/14#issuecomment-264896517","issue_url":"https://api.github.com/repos/PredixDev/px-vis-timeseries/issues/14","id":264896517,"user":{"login":"manderson23","id":1684641,"avatar_url":"https://avatars.githubusercontent.com/u/1684641?v=3","gravatar_id":"","url":"https://api.github.com/users/manderson23","html_url":"https://github.com/manderson23","followers_url":"https://api.github.com/users/manderson23/followers","following_url":"https://api.github.com/users/manderson23/following{/other_user}","gists_url":"https://api.github.com/users/manderson23/gists{/gist_id}","starred_url":"https://api.github.com/users/manderson23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manderson23/subscriptions","organizations_url":"https://api.github.com/users/manderson23/orgs","repos_url":"https://api.github.com/users/manderson23/repos","events_url":"https://api.github.com/users/manderson23/events{/privacy}","received_events_url":"https://api.github.com/users/manderson23/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T16:12:41Z","updated_at":"2016-12-05T16:12:41Z","body":"I'm also seeing this issue but I don't agree that it has been resolved.\r\n\r\n@nonmetalhail suggests that updating the chart data property should be enough. In my case I'm currently using a computed binding so don't want to use Polymer APIs. I'm leaving the series config unchanged since it doesn't require an update.\r\n\r\nIf I'm replacing all the chart data I'd expect the component itself to handle it."}}
{"actor":{"display_login":"manderson23"}}