{"action":"created","issue":{"url":"https://api.github.com/repos/jasonxunxu/dokuwiki-plugin-c3chart/issues/9","labels_url":"https://api.github.com/repos/jasonxunxu/dokuwiki-plugin-c3chart/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/jasonxunxu/dokuwiki-plugin-c3chart/issues/9/comments","events_url":"https://api.github.com/repos/jasonxunxu/dokuwiki-plugin-c3chart/issues/9/events","html_url":"https://github.com/jasonxunxu/dokuwiki-plugin-c3chart/issues/9","id":60516006,"number":9,"title":"Support for functions or expressions?","user":{"login":"bergonzzi","id":1838707,"avatar_url":"https://avatars.githubusercontent.com/u/1838707?v=3","gravatar_id":"","url":"https://api.github.com/users/bergonzzi","html_url":"https://github.com/bergonzzi","followers_url":"https://api.github.com/users/bergonzzi/followers","following_url":"https://api.github.com/users/bergonzzi/following{/other_user}","gists_url":"https://api.github.com/users/bergonzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/bergonzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergonzzi/subscriptions","organizations_url":"https://api.github.com/users/bergonzzi/orgs","repos_url":"https://api.github.com/users/bergonzzi/repos","events_url":"https://api.github.com/users/bergonzzi/events{/privacy}","received_events_url":"https://api.github.com/users/bergonzzi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T15:18:56Z","updated_at":"2015-03-10T17:12:25Z","closed_at":"2015-03-10T17:12:25Z","body":"Hi, is there any way to allow functions or expressions to be used? I was trying to configure an axis as a percentage using:\r\n\r\n    tick: {\r\n        format: d3.format(\"%\")\r\n    }\r\n\r\n but this doesn't work, I get a `string is not a function'` error in the console. I think this is what you refer to in the documentation that it's for security reasons, but is there a way to overcome that? In my case it's an internal wiki and security isn't a concern."},"comment":{"url":"https://api.github.com/repos/jasonxunxu/dokuwiki-plugin-c3chart/issues/comments/78100815","html_url":"https://github.com/jasonxunxu/dokuwiki-plugin-c3chart/issues/9#issuecomment-78100815","issue_url":"https://api.github.com/repos/jasonxunxu/dokuwiki-plugin-c3chart/issues/9","id":78100815,"user":{"login":"jasonxunxu","id":769155,"avatar_url":"https://avatars.githubusercontent.com/u/769155?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonxunxu","html_url":"https://github.com/jasonxunxu","followers_url":"https://api.github.com/users/jasonxunxu/followers","following_url":"https://api.github.com/users/jasonxunxu/following{/other_user}","gists_url":"https://api.github.com/users/jasonxunxu/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxunxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxunxu/subscriptions","organizations_url":"https://api.github.com/users/jasonxunxu/orgs","repos_url":"https://api.github.com/users/jasonxunxu/repos","events_url":"https://api.github.com/users/jasonxunxu/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxunxu/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T17:12:25Z","updated_at":"2015-03-10T17:12:25Z","body":"Since this is a wiki plugin, as you noticed it would be a severe security issue if arbitrary JavaScript functions could be evaluated inside the user supplied data. If you are pretty sure that this is not a problem for your case you can modify `script.js`, and evaluate (`eval()`) the part of the loaded data that you would expect to be a function, before create the `c3` object with `c3.generate`."}}