Tryng to fit a Pie and Bar chart on to the canvas
Post a replyPosted by Vinit saini on 13:21 10th December 2020
Posted by Richard on 16:23 10th December 2020
1. You could use the DIV/overflow technique as detailed in point 2. There's a codepen that shows this here:
https://codepen.io/rgraph/pen/bGwBdEX
2. For this you could use CSS overflow and have a large canvas contained within a smaller DIV that has the overflow set to auto (so that a scrollbar appears).
https://codepen.io/rgraph/pen/PoGbqoV
https://codepen.io/rgraph/pen/bGwBdEX
2. For this you could use CSS overflow and have a large canvas contained within a smaller DIV that has the overflow set to auto (so that a scrollbar appears).
https://codepen.io/rgraph/pen/PoGbqoV