{"action":"created","issue":{"url":"https://api.github.com/repos/amcharts/amcharts4/issues/398","repository_url":"https://api.github.com/repos/amcharts/amcharts4","labels_url":"https://api.github.com/repos/amcharts/amcharts4/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/amcharts/amcharts4/issues/398/comments","events_url":"https://api.github.com/repos/amcharts/amcharts4/issues/398/events","html_url":"https://github.com/amcharts/amcharts4/issues/398","id":363927503,"node_id":"MDU6SXNzdWUzNjM5Mjc1MDM=","number":398,"title":"addData doesn't remove element from data array","user":{"login":"ramarro123","id":5493729,"node_id":"MDQ6VXNlcjU0OTM3Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/5493729?v=4","gravatar_id":"","url":"https://api.github.com/users/ramarro123","html_url":"https://github.com/ramarro123","followers_url":"https://api.github.com/users/ramarro123/followers","following_url":"https://api.github.com/users/ramarro123/following{/other_user}","gists_url":"https://api.github.com/users/ramarro123/gists{/gist_id}","starred_url":"https://api.github.com/users/ramarro123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramarro123/subscriptions","organizations_url":"https://api.github.com/users/ramarro123/orgs","repos_url":"https://api.github.com/users/ramarro123/repos","events_url":"https://api.github.com/users/ramarro123/events{/privacy}","received_events_url":"https://api.github.com/users/ramarro123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T09:08:43Z","updated_at":"2018-09-26T10:08:52Z","closed_at":null,"author_association":"NONE","body":"i have created an amchart with some data on it via\r\n    this.amChart.addData(blalblabla);\r\nnow, the data get updated via MQTT, and i want to keep the number low, due to insane lag on update.\r\n\r\ni try to do\r\n\r\n        this.amChart.addData(arr, arr.length);\r\n\r\nand, standing to docs it should remove element from the begin of dataset.\r\nfrom console, printing this.amChart.data.length\r\n\r\nbefore i have  248\r\nafter  250\r\n\r\nso, the 2 elem of array get added, but the first 2 aren't removed.\r\nchart display that behaviour as well, new data are in, the chart refresh, but the old one aren't disposed\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/amcharts/amcharts4/issues/comments/424660544","html_url":"https://github.com/amcharts/amcharts4/issues/398#issuecomment-424660544","issue_url":"https://api.github.com/repos/amcharts/amcharts4/issues/398","id":424660544,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDY2MDU0NA==","user":{"login":"martynasma","id":1458520,"node_id":"MDQ6VXNlcjE0NTg1MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1458520?v=4","gravatar_id":"","url":"https://api.github.com/users/martynasma","html_url":"https://github.com/martynasma","followers_url":"https://api.github.com/users/martynasma/followers","following_url":"https://api.github.com/users/martynasma/following{/other_user}","gists_url":"https://api.github.com/users/martynasma/gists{/gist_id}","starred_url":"https://api.github.com/users/martynasma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martynasma/subscriptions","organizations_url":"https://api.github.com/users/martynasma/orgs","repos_url":"https://api.github.com/users/martynasma/repos","events_url":"https://api.github.com/users/martynasma/events{/privacy}","received_events_url":"https://api.github.com/users/martynasma/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T10:08:52Z","updated_at":"2018-09-26T10:08:52Z","author_association":"COLLABORATOR","body":"I can't seem to reproduce this. Here's my test case:\r\nhttps://codepen.io/team/amcharts/pen/8e35f25d6a86afc5f75c3d5c3b7826d4?editors=0010\r\n\r\nCan you share your chart code and data so that we can test yours?"}}
{"actor":{"display_login":"martynasma"}}