{"action":"created","issue":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/1252","labels_url":"https://api.github.com/repos/masayuki0812/c3/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/masayuki0812/c3/issues/1252/comments","events_url":"https://api.github.com/repos/masayuki0812/c3/issues/1252/events","html_url":"https://github.com/masayuki0812/c3/issues/1252","id":92895296,"number":1252,"title":"Allow titles to have formatting","user":{"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-03T15:24:02Z","updated_at":"2015-07-03T16:42:42Z","closed_at":null,"body":"I'm not sure if I'm either over- or under-thinking this, but it'd be cool if the new title feature could be formatted a bit (I'm in a situation where I'd want titles in the format \"**Chart Name** — Ændrew Rininsland/The Times\"). You could do something like supply `<tspan class=\"chart-name\">Chart Name</tspan> — Ændrew Rininsland/The Times` as the value of `config.title.text`, but that will print as plaintext due to [ln. 4 of title.js](https://github.com/masayuki0812/c3/blob/master/src/title.js#L4).\r\n\r\nI thought it'd be as easy as changing that call from `d3.selection.text()` to `d3.selection.html()`, but even though it works in practice, 5/7 of the tests in title-spec.js fail (Oddly, the `d3.select('.c3-title').node().textContent` comes out as empty string.), and I really have no idea why.\r\n\r\n@davidpoore Any ideas?"},"comment":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/comments/118390695","html_url":"https://github.com/masayuki0812/c3/issues/1252#issuecomment-118390695","issue_url":"https://api.github.com/repos/masayuki0812/c3/issues/1252","id":118390695,"user":{"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},"created_at":"2015-07-03T16:42:42Z","updated_at":"2015-07-03T16:42:42Z","body":"Went with the second idea; see #1253.\r\n\r\n@davidpoore Would really appreciate it if you'd be willing to take a look and let me know if there's anything I've done that's going to screw up anything you've done! :sweat_smile: "}}