{"action":"closed","issue":{"url":"https://api.github.com/repos/c3js/c3/issues/1901","repository_url":"https://api.github.com/repos/c3js/c3","labels_url":"https://api.github.com/repos/c3js/c3/issues/1901/labels{/name}","comments_url":"https://api.github.com/repos/c3js/c3/issues/1901/comments","events_url":"https://api.github.com/repos/c3js/c3/issues/1901/events","html_url":"https://github.com/c3js/c3/issues/1901","id":194235044,"number":1901,"title":"Tutorial on extending API","user":{"login":"arikin","id":9474052,"avatar_url":"https://avatars.githubusercontent.com/u/9474052?v=3","gravatar_id":"","url":"https://api.github.com/users/arikin","html_url":"https://github.com/arikin","followers_url":"https://api.github.com/users/arikin/followers","following_url":"https://api.github.com/users/arikin/following{/other_user}","gists_url":"https://api.github.com/users/arikin/gists{/gist_id}","starred_url":"https://api.github.com/users/arikin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikin/subscriptions","organizations_url":"https://api.github.com/users/arikin/orgs","repos_url":"https://api.github.com/users/arikin/repos","events_url":"https://api.github.com/users/arikin/events{/privacy}","received_events_url":"https://api.github.com/users/arikin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T03:00:44Z","updated_at":"2016-12-12T02:30:29Z","closed_at":"2016-12-12T02:30:29Z","body":"The introduction to the extend feature: https://github.com/c3js/c3/releases/tag/0.3.0\r\nDoesn't really cover how to add global API calls.\r\n\r\nThe use of \"chart\" in other examples refers to the name to which to bind the chart to a CSS selector. But in that intro does \"chart\" refer to the chart in \"var chart = c3.generate\"?  That would mean c3.chart?\r\n\r\nUsing multiple charts on a single page requires multiple binds with unique names.  Is the extend feature available  to all charts(global)? I hoped that is the case. But I am getting undefined for \"myAPI\".\r\n\r\nI was trying to add a subchart.show and subchart.hide API.  As shown here:\r\nhttps://github.com/c3js/c3/issues/890\r\n\r\nI know that documentation is a real pain. The c3js.org site documentation is really good and was one more reason for choosing C3js."}}
{"actor":{"display_login":"arikin"}}