github-contributions-canvas
github-contributions-canvas copied to clipboard
Feature Request: Add option to render image for the last XX month instead of a year
How about making the year parameter optional, if no year is defined, you can render the last twelve month (like it is shown on github)
years: [{
range: {
start: '2018-02-12',
end: '2019-02-12'
}
}]
Or is there already such an option I am missing?
If you want to render a specific year, you delete other years from your data. Before deleting other years, my data and my render look like that
Then I deleted the years, which I don't want to render, I got what I want
You can improve that and make the year parameter optional in your code