{"action":"opened","issue":{"url":"https://api.github.com/repos/Kozea/pygal/issues/246","labels_url":"https://api.github.com/repos/Kozea/pygal/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/pygal/issues/246/comments","events_url":"https://api.github.com/repos/Kozea/pygal/issues/246/events","html_url":"https://github.com/Kozea/pygal/issues/246","id":96839706,"number":246,"title":"Add Link to legend element.","user":{"login":"mklauber","id":563721,"avatar_url":"https://avatars.githubusercontent.com/u/563721?v=3","gravatar_id":"","url":"https://api.github.com/users/mklauber","html_url":"https://github.com/mklauber","followers_url":"https://api.github.com/users/mklauber/followers","following_url":"https://api.github.com/users/mklauber/following{/other_user}","gists_url":"https://api.github.com/users/mklauber/gists{/gist_id}","starred_url":"https://api.github.com/users/mklauber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mklauber/subscriptions","organizations_url":"https://api.github.com/users/mklauber/orgs","repos_url":"https://api.github.com/users/mklauber/repos","events_url":"https://api.github.com/users/mklauber/events{/privacy}","received_events_url":"https://api.github.com/users/mklauber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-23T15:26:19Z","updated_at":"2015-07-23T15:26:19Z","closed_at":null,"body":"I would like to be able to set a url representing the source data for each series as a URL.  \r\n\r\nLooking at it, looks like I would need to add a `link` Key to the `SerieConfig` class, and then in the `pygal/graph/graph.py` file, update `def _legend` to check the existence of that key, and if it exists, create a `<a xlink:href=\"...\">...</a>` surrounding the `rect`, `text` and `title` elements.  I'm working on a PR for this, trying to determine how to implement it.\r\n\r\nThe one issue I could use some advice on is how to determine what the `link` element is on a given series.  From what I can determine, the `def _legends` (note: not `_legend`) code returns just the legend text, not the series itself.  "}}