{"action":"created","issue":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/534","repository_url":"https://api.github.com/repos/pablojim/highcharts-ng","labels_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/534/comments","events_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/534/events","html_url":"https://github.com/pablojim/highcharts-ng/issues/534","id":191540747,"number":534,"title":" Uniform series shift when series added or updated","user":{"login":"VincentGuedes","id":8736665,"avatar_url":"https://avatars.githubusercontent.com/u/8736665?v=3","gravatar_id":"","url":"https://api.github.com/users/VincentGuedes","html_url":"https://github.com/VincentGuedes","followers_url":"https://api.github.com/users/VincentGuedes/followers","following_url":"https://api.github.com/users/VincentGuedes/following{/other_user}","gists_url":"https://api.github.com/users/VincentGuedes/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentGuedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentGuedes/subscriptions","organizations_url":"https://api.github.com/users/VincentGuedes/orgs","repos_url":"https://api.github.com/users/VincentGuedes/repos","events_url":"https://api.github.com/users/VincentGuedes/events{/privacy}","received_events_url":"https://api.github.com/users/VincentGuedes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-24T15:01:25Z","updated_at":"2016-11-24T23:05:27Z","closed_at":null,"body":"When adding or updating a series in the highcharts config object, constant series get shifted along the x-axis. \r\nAs an indication for those facing this problem, setting the data directly via the highcharts object furnished by `configObject.getHighcharts()` can be used as a workaround.\r\n\r\nhttps://jsfiddle.net/VincentGuedes/r4c4oweh/"},"comment":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/comments/262854200","html_url":"https://github.com/pablojim/highcharts-ng/issues/534#issuecomment-262854200","issue_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/534","id":262854200,"user":{"login":"VincentGuedes","id":8736665,"avatar_url":"https://avatars.githubusercontent.com/u/8736665?v=3","gravatar_id":"","url":"https://api.github.com/users/VincentGuedes","html_url":"https://github.com/VincentGuedes","followers_url":"https://api.github.com/users/VincentGuedes/followers","following_url":"https://api.github.com/users/VincentGuedes/following{/other_user}","gists_url":"https://api.github.com/users/VincentGuedes/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentGuedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentGuedes/subscriptions","organizations_url":"https://api.github.com/users/VincentGuedes/orgs","repos_url":"https://api.github.com/users/VincentGuedes/repos","events_url":"https://api.github.com/users/VincentGuedes/events{/privacy}","received_events_url":"https://api.github.com/users/VincentGuedes/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T23:05:27Z","updated_at":"2016-11-24T23:05:27Z","body":"Hello Barry,\nI'll check it out. Looking at the directive code the issue seems to stem\nfrom the processSeries function which makes a call to highchart's function\nto add a point and shift the series - which I presume is wanted behaviour\nin the case of continuously updated series. The function seems to take that\npath after comparing 'new' and 'old' series (which are the same in this\ncase) by the way it compares the series : from what I remember it takes a\npoint from the new series , sticks it onto a copy of the old one, shifts\nthis and then compares the result to the new series, so they'll be equal in\nthe case of a constant series.\nThat's how far I looked into it, if it may help.\n\nCheers\n(and thanks for your plugin we've been using here at work ;) )\n\nLe 24 nov. 2016 6:26 PM, \"Barry Fitzgerald\" <notifications@github.com> a\nécrit :\n\n> That is strange. I'll have a look. Please have a look at the Beta version\n> and see if the problem occurs there too. https://github.com/pablojim/\n> highcharts-ng/tree/highcharts-ng2\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/pablojim/highcharts-ng/issues/534#issuecomment-262821884>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AIVPmaC9N8HHadOuAypK1m9FimvGCUAiks5rBci7gaJpZM4K7vXt>\n> .\n>\n"}}
{"actor":{"display_login":"VincentGuedes"}}