ChartJS legend is not included in canvas if is a custom html legend
Expected Behavior
When save an image of canvas to include the legend.
Current Behavior
The legend is not included.
Possible Solution
Include the custom html legend into the chart canvas.
Steps to Reproduce (for bugs)
- Visit https://codepen.io/anon/pen/XZGyNW
- Right Click on Chart save image
Environment
- Chart.js version: 2.7.2
- Link to your project: https://codepen.io/anon/pen/XZGyNW
Actually, you could implement that feature by yourself, for example by using library like html2canvas and wrap the canvas + HTML legend inside the same container. You would add to expose a save button that will “capture” the HTML container (fiddle).