{"action":"created","issue":{"url":"https://api.github.com/repos/prog666/docxtemplater-chart-module/issues/2","labels_url":"https://api.github.com/repos/prog666/docxtemplater-chart-module/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/prog666/docxtemplater-chart-module/issues/2/comments","events_url":"https://api.github.com/repos/prog666/docxtemplater-chart-module/issues/2/events","html_url":"https://github.com/prog666/docxtemplater-chart-module/pull/2","id":109082024,"number":2,"title":"allow different charts from one tag via docxtemplater loop functionality","user":{"login":"colmben","id":3945651,"avatar_url":"https://avatars.githubusercontent.com/u/3945651?v=3","gravatar_id":"","url":"https://api.github.com/users/colmben","html_url":"https://github.com/colmben","followers_url":"https://api.github.com/users/colmben/followers","following_url":"https://api.github.com/users/colmben/following{/other_user}","gists_url":"https://api.github.com/users/colmben/gists{/gist_id}","starred_url":"https://api.github.com/users/colmben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colmben/subscriptions","organizations_url":"https://api.github.com/users/colmben/orgs","repos_url":"https://api.github.com/users/colmben/repos","events_url":"https://api.github.com/users/colmben/events{/privacy}","received_events_url":"https://api.github.com/users/colmben/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-30T13:03:00Z","updated_at":"2015-09-30T13:20:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/prog666/docxtemplater-chart-module/pulls/2","html_url":"https://github.com/prog666/docxtemplater-chart-module/pull/2","diff_url":"https://github.com/prog666/docxtemplater-chart-module/pull/2.diff","patch_url":"https://github.com/prog666/docxtemplater-chart-module/pull/2.patch"},"body":"Currently the chart module doesn't deal correctly with the loop functionality offered by the docxtemplater library. This is because the internal filename given to the chart is based on the tag name in the template and so in a loop it keeps overwriting the chart with the same filename. So you end up with the right number of charts in the output docx but they are all the same chart - the last chart in the loop. This one line fix just adds on a number to the tag when creating the internal filename. This allows for different charts to be produced inside the loop.\r\n"},"comment":{"url":"https://api.github.com/repos/prog666/docxtemplater-chart-module/issues/comments/144392660","html_url":"https://github.com/prog666/docxtemplater-chart-module/pull/2#issuecomment-144392660","issue_url":"https://api.github.com/repos/prog666/docxtemplater-chart-module/issues/2","id":144392660,"user":{"login":"prog666","id":6894885,"avatar_url":"https://avatars.githubusercontent.com/u/6894885?v=3","gravatar_id":"","url":"https://api.github.com/users/prog666","html_url":"https://github.com/prog666","followers_url":"https://api.github.com/users/prog666/followers","following_url":"https://api.github.com/users/prog666/following{/other_user}","gists_url":"https://api.github.com/users/prog666/gists{/gist_id}","starred_url":"https://api.github.com/users/prog666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prog666/subscriptions","organizations_url":"https://api.github.com/users/prog666/orgs","repos_url":"https://api.github.com/users/prog666/repos","events_url":"https://api.github.com/users/prog666/events{/privacy}","received_events_url":"https://api.github.com/users/prog666/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T13:20:21Z","updated_at":"2015-09-30T13:20:21Z","body":"can you make tests pass?"}}