{"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":16,"created_at":"2016-09-20T00:35:11Z","updated_at":"2016-12-07T17:31:23Z","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/265514233","html_url":"https://github.com/PredixDev/px-vis-timeseries/issues/14#issuecomment-265514233","issue_url":"https://api.github.com/repos/PredixDev/px-vis-timeseries/issues/14","id":265514233,"user":{"login":"benoitjchevalier","id":3206342,"avatar_url":"https://avatars.githubusercontent.com/u/3206342?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitjchevalier","html_url":"https://github.com/benoitjchevalier","followers_url":"https://api.github.com/users/benoitjchevalier/followers","following_url":"https://api.github.com/users/benoitjchevalier/following{/other_user}","gists_url":"https://api.github.com/users/benoitjchevalier/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitjchevalier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitjchevalier/subscriptions","organizations_url":"https://api.github.com/users/benoitjchevalier/orgs","repos_url":"https://api.github.com/users/benoitjchevalier/repos","events_url":"https://api.github.com/users/benoitjchevalier/events{/privacy}","received_events_url":"https://api.github.com/users/benoitjchevalier/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T17:31:23Z","updated_at":"2016-12-07T17:31:23Z","body":"We're in the process of improving our documentation and building tutorials for the vis framework. Please note we're only two people building the vis framework and are a bit stretched ;). This might take a bit longer before the tutorials come out.\r\n\r\nThanks for your feedback"}}
{"actor":{"display_login":"benoitjchevalier"}}