{"action":"created","issue":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/1091","labels_url":"https://api.github.com/repos/masayuki0812/c3/issues/1091/labels{/name}","comments_url":"https://api.github.com/repos/masayuki0812/c3/issues/1091/comments","events_url":"https://api.github.com/repos/masayuki0812/c3/issues/1091/events","html_url":"https://github.com/masayuki0812/c3/issues/1091","id":65267038,"number":1091,"title":"Update data.mimeType documentation to reflect actual option OR change json: option to accept url","user":{"login":"hoprocker","id":141057,"avatar_url":"https://avatars.githubusercontent.com/u/141057?v=3","gravatar_id":"","url":"https://api.github.com/users/hoprocker","html_url":"https://github.com/hoprocker","followers_url":"https://api.github.com/users/hoprocker/followers","following_url":"https://api.github.com/users/hoprocker/following{/other_user}","gists_url":"https://api.github.com/users/hoprocker/gists{/gist_id}","starred_url":"https://api.github.com/users/hoprocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoprocker/subscriptions","organizations_url":"https://api.github.com/users/hoprocker/orgs","repos_url":"https://api.github.com/users/hoprocker/repos","events_url":"https://api.github.com/users/hoprocker/events{/privacy}","received_events_url":"https://api.github.com/users/hoprocker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-30T17:59:06Z","updated_at":"2015-04-23T22:54:05Z","closed_at":null,"body":"c3 looks great, and is made even better with the option of being able to load JSON dynamically. It took a bit of time to find the 'mimeType' option. When I did, I assumed that this accepted the standard HTTP mimetype \"application/json\". This didn't seem to work; so finally, I searched through the issues here and found this: #236 \r\n\r\nIt looks like you need to specify 'json' as the mimeType parameter to load the data correctly. This is not only undocumented, I would argue that it is confusing in how non-standard it is (see [this](https://www.ietf.org/rfc/rfc4627.txt)). I'd like to propose one of the following changes, in increasing order of preference:\r\n\r\n1. Update the documentation to specify that the mimetype is 'json';\r\n1. Allow 'application/json' as a valid mimetype; or\r\n1. Implement @masayuki0812's initial suggestion for the syntax:\r\n\r\n```\r\ndata: {\r\n    json:  obj // or url\r\n}\r\n```\r\n\r\nThis last option seems the clearest. I'd be happy to submit a pull request for this."},"comment":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/comments/95739501","html_url":"https://github.com/masayuki0812/c3/issues/1091#issuecomment-95739501","issue_url":"https://api.github.com/repos/masayuki0812/c3/issues/1091","id":95739501,"user":{"login":"hoprocker","id":141057,"avatar_url":"https://avatars.githubusercontent.com/u/141057?v=3","gravatar_id":"","url":"https://api.github.com/users/hoprocker","html_url":"https://github.com/hoprocker","followers_url":"https://api.github.com/users/hoprocker/followers","following_url":"https://api.github.com/users/hoprocker/following{/other_user}","gists_url":"https://api.github.com/users/hoprocker/gists{/gist_id}","starred_url":"https://api.github.com/users/hoprocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoprocker/subscriptions","organizations_url":"https://api.github.com/users/hoprocker/orgs","repos_url":"https://api.github.com/users/hoprocker/repos","events_url":"https://api.github.com/users/hoprocker/events{/privacy}","received_events_url":"https://api.github.com/users/hoprocker/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T22:54:05Z","updated_at":"2015-04-23T22:54:05Z","body":"Your case seems slightly different than mine. Are you saying that json data can only be loaded before the chart is initialized? If so, can you reload the chart somehow (maybe by calling c3.generate() with just the {data:{json: ..}} parameter)?"}}