{"action":"created","issue":{"url":"https://api.github.com/repos/c3js/c3/issues/1255","repository_url":"https://api.github.com/repos/c3js/c3","labels_url":"https://api.github.com/repos/c3js/c3/issues/1255/labels{/name}","comments_url":"https://api.github.com/repos/c3js/c3/issues/1255/comments","events_url":"https://api.github.com/repos/c3js/c3/issues/1255/events","html_url":"https://github.com/c3js/c3/issues/1255","id":93247221,"number":1255,"title":"Regions replace does not work in regions API","user":{"login":"peterdesmet","id":600993,"avatar_url":"https://avatars.githubusercontent.com/u/600993?v=3","gravatar_id":"","url":"https://api.github.com/users/peterdesmet","html_url":"https://github.com/peterdesmet","followers_url":"https://api.github.com/users/peterdesmet/followers","following_url":"https://api.github.com/users/peterdesmet/following{/other_user}","gists_url":"https://api.github.com/users/peterdesmet/gists{/gist_id}","starred_url":"https://api.github.com/users/peterdesmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterdesmet/subscriptions","organizations_url":"https://api.github.com/users/peterdesmet/orgs","repos_url":"https://api.github.com/users/peterdesmet/repos","events_url":"https://api.github.com/users/peterdesmet/events{/privacy}","received_events_url":"https://api.github.com/users/peterdesmet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/c3js/c3/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/c3js/c3/labels/resolved%20maybe","name":"resolved maybe","color":"fbca04"},{"url":"https://api.github.com/repos/c3js/c3/labels/tests","name":"tests","color":"000000"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/c3js/c3/milestones/1","html_url":"https://github.com/c3js/c3/milestones/0.4.11","labels_url":"https://api.github.com/repos/c3js/c3/milestones/1/labels","id":1190533,"number":1,"title":"0.4.11","description":"Issues related to the upcoming 0.4.11 release.","creator":{"login":"aendrew","id":185041,"avatar_url":"https://avatars.githubusercontent.com/u/185041?v=3","gravatar_id":"","url":"https://api.github.com/users/aendrew","html_url":"https://github.com/aendrew","followers_url":"https://api.github.com/users/aendrew/followers","following_url":"https://api.github.com/users/aendrew/following{/other_user}","gists_url":"https://api.github.com/users/aendrew/gists{/gist_id}","starred_url":"https://api.github.com/users/aendrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aendrew/subscriptions","organizations_url":"https://api.github.com/users/aendrew/orgs","repos_url":"https://api.github.com/users/aendrew/repos","events_url":"https://api.github.com/users/aendrew/events{/privacy}","received_events_url":"https://api.github.com/users/aendrew/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":22,"state":"open","created_at":"2015-07-02T12:45:34Z","updated_at":"2016-04-30T13:57:31Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-07-06T10:48:10Z","updated_at":"2016-04-30T13:57:31Z","closed_at":"2016-04-30T13:57:31Z","body":"The [regions API](http://c3js.org/reference.html#api-regions) has a method for replacing regions:\r\n\r\n```JS\r\nchart.regions([\r\n  {axis: 'x', start: 5, class: 'regionX'},\r\n  {axis: 'y', end: 50, class: 'regionY'}\r\n]);\r\n```\r\n\r\nIn practice, this only seems to work for initializing a region (cf. `regions.add()`), but not updating a region. E.g. in [this fiddle](http://jsfiddle.net/10ktt85p/), the first setTimeOut function will set a region, the second one does nothing."},"comment":{"url":"https://api.github.com/repos/c3js/c3/issues/comments/215964677","html_url":"https://github.com/c3js/c3/issues/1255#issuecomment-215964677","issue_url":"https://api.github.com/repos/c3js/c3/issues/1255","id":215964677,"user":{"login":"masayuki0812","id":1142423,"avatar_url":"https://avatars.githubusercontent.com/u/1142423?v=3","gravatar_id":"","url":"https://api.github.com/users/masayuki0812","html_url":"https://github.com/masayuki0812","followers_url":"https://api.github.com/users/masayuki0812/followers","following_url":"https://api.github.com/users/masayuki0812/following{/other_user}","gists_url":"https://api.github.com/users/masayuki0812/gists{/gist_id}","starred_url":"https://api.github.com/users/masayuki0812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayuki0812/subscriptions","organizations_url":"https://api.github.com/users/masayuki0812/orgs","repos_url":"https://api.github.com/users/masayuki0812/repos","events_url":"https://api.github.com/users/masayuki0812/events{/privacy}","received_events_url":"https://api.github.com/users/masayuki0812/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T13:57:31Z","updated_at":"2016-04-30T13:57:31Z","body":"Let me close this for the moment and please reopen if something is wrong."}}